marek cebd3edf9d batman makefiles / configs / init scripts revised
vis package added


git-svn-id: svn://svn.openwrt.org/openwrt/packages@15332 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 19:16:40 +00:00

21 lines
327 B
Bash

#!/bin/sh /etc/rc.common
START=90
. /lib/config/uci.sh
uci_load vis
start () {
interface=$(uci get vis.general.interface)
if [ "$interface" = "" ]; then
echo $1 Error, you must specify at least a network interface
exit
fi
vis_args=$interface
vis $vis_args >/dev/null 2>&1
}
stop () {
killall vis
}