blob: 072e595b3f6de701e55d62cc413449f4e693dc31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=90
config_cb() {
local cfg="$CONFIG_SECTION"
local res
local dev
local port
local cfgt
config_get cfgt "$cfg" TYPE
case "$cfgt" in
servfox)
config_get res $cfg Resolution
config_get dev $cfg Device
config_get port $cfg Port
SERVFOX_ARGS="${dev:+-d $dev} ${res:+-s $res} ${port:+-w $port}"
;;
esac
}
start() {
config_load servfox
/bin/servfox $SERVFOX_ARGS &
}
stop() {
killall servfox
}
|