Changeset 29078
- Timestamp:
- 2011-11-13T23:16:23+01:00 (6 years ago)
- Location:
- packages/multimedia/spca5xx-view
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
packages/multimedia/spca5xx-view/Makefile
r19719 r29078 1 1 # 2 # Copyright (C) 2006 OpenWrt.org2 # Copyright (C) 2006-2011 OpenWrt.org 3 3 # 4 4 # This is free software, licensed under the GNU General Public License v2. … … 10 10 PKG_NAME:=spca5xx-view 11 11 PKG_VERSION:=1 12 PKG_RELEASE:= 112 PKG_RELEASE:=2 13 13 14 14 PKG_SOURCE:=spca5xx-view.tar.bz2 -
packages/multimedia/spca5xx-view/files/servfox.config
r7494 r29078 1 1 config servfox 2 option Device '/dev/video0'3 option Port '7070'4 option Resolution '640x480'2 option device '/dev/video0' 3 option port '7070' 4 option resolution '640x480' -
packages/multimedia/spca5xx-view/files/servfox.init
r7494 r29078 1 1 #!/bin/sh /etc/rc.common 2 # Copyright (C) 2006 OpenWrt.org 2 # Copyright (C) 2006-2011 OpenWrt.org 3 3 4 START=90 4 5 5 config_cb() {6 local cfg="$ CONFIG_SECTION"6 satrt_instance() { 7 local cfg="$1" 7 8 local res 8 9 local dev 9 10 local port 10 local cfgt11 config_get cfgt "$cfg" TYPE12 11 13 case "$cfgt" in 14 servfox) 15 config_get res $cfg Resolution 16 config_get dev $cfg Device 17 config_get port $cfg Port 18 19 SERVFOX_ARGS="${dev:+-d $dev} ${res:+-s $res} ${port:+-w $port}" 20 ;; 21 esac 12 config_get res "$cfg" 'resolution' 13 config_get dev "$cfg" 'device' 14 config_get port "$cfg" 'port' 15 service_start bin/servfox ${dev:+-d $dev} ${res:+-s $res} ${port:+-w $port} 22 16 } 23 17 24 18 start() { 25 config_load servfox26 /bin/servfox $SERVFOX_ARGS &19 config_load 'servfox' 20 config_foreach start_instance 'servfox' 27 21 } 28 22 29 23 stop() { 30 killall servfox24 service_stop /bin/servfox 31 25 }
Note: See TracChangeset
for help on using the changeset viewer.