Cleanup Makefile edit, add back lost cut-n-paste in init script
authorTed Hess <thess@kitschensync.net>
Tue, 22 Jul 2014 19:42:23 +0000 (15:42 -0400)
committerTed Hess <thess@kitschensync.net>
Tue, 22 Jul 2014 19:42:23 +0000 (15:42 -0400)
Signed-off-by: Ted Hess <thess@kitschensync.net>
multimedia/mjpg-streamer/Makefile
multimedia/mjpg-streamer/files/mjpg-streamer.init

index 7323a5d649f7b8e6ed4313f7228b712b0fa949c9..60b56553f80d68702677c867ef6ea8133b282148 100644 (file)
@@ -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
index 550ea4d2f213aa5f983581d89e00585f9525ba3f..eebd4f84a7bf90d82ea678f817186e7aaba612a3 100644 (file)
@@ -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