mjpg-streamer: Fix V4L2 option dependency selection and add camera led control option

Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
Ted Hess
2014-10-10 18:32:02 -04:00
parent 91df26017a
commit 0443ea0d79
3 changed files with 10 additions and 6 deletions
@@ -1,3 +1,4 @@
config mjpg-streamer 'core'
option enabled '0'
option input 'uvc'
@@ -5,6 +6,7 @@ config mjpg-streamer 'core'
option device '/dev/video0'
option resolution '640x480'
option fps '5'
option led 'auto'
option www '/www/webcam'
option port '8080'
option username 'openwrt'
@@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2009-2013 OpenWrt.org
# Copyright (C) 2009-2014 OpenWrt.org
START=90
STOP=10
@@ -45,6 +45,9 @@ start_instance() {
config_get resolution "$s" 'resolution'
[ -n "$resolution" ] && input_arg="${input_arg} --resolution $resolution"
config_get led "$s" 'led'
[ -n "$led" ] && input_arg="${input_arg} --led $led"
fi
if [ -z "$input_arg" ]; then