mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user