diff --git a/multimedia/mjpg-streamer/Makefile b/multimedia/mjpg-streamer/Makefile index 7323a5d64..60b56553f 100644 --- a/multimedia/mjpg-streamer/Makefile +++ b/multimedia/mjpg-streamer/Makefile @@ -29,7 +29,6 @@ define Package/mjpg-streamer CATEGORY:=Multimedia TITLE:=MJPG-streamer DEPENDS:=+libpthread +libjpeg +PACKAGE_libv4l:libv4l -#$(if $(CONFIG_MJPG_STREAMER_V4L2),+libv4l) URL:=http://mjpg-streamer.wiki.sourceforge.net/ MENU:=1 endef diff --git a/multimedia/mjpg-streamer/files/mjpg-streamer.init b/multimedia/mjpg-streamer/files/mjpg-streamer.init index 550ea4d2f..eebd4f84a 100644 --- a/multimedia/mjpg-streamer/files/mjpg-streamer.init +++ b/multimedia/mjpg-streamer/files/mjpg-streamer.init @@ -61,6 +61,10 @@ start_instance() { config_get www "$s" 'www' [ -n "$www" ] && output_arg="${output_arg} --www $www" + + config_get username "$s" 'username' + config_get password "$s" 'password' + [ -n "$username" ] && [ -n "$password" ] && output_arg="${output_arg} --credentials $username:$password" fi if [ -z "$output_arg" ]; then