1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2009 OpenWrt.org
7 PIDF=/var/run/$NAME.pid
11 config_load mjpg-streamer
12 config_get device core device
13 config_get resolution core resolution
14 config_get fps core fps
15 config_get port core port
16 config_get_bool enabled core enabled
17 [ $enabled -gt 0 -a -c $device ] && sleep 3 && $SSD -S -m -p $PIDF -q -x $PROG -- --input "input_uvc.so --device $device --fps $fps --resolution $resolution" --output "output_http.so --port $port" &