upgrade asterisk 1.4.x to 1.4.25.1
[openwrt/svn-archive/archive.git] / net / batman / files / etc / init.d / vis
1 #!/bin/sh /etc/rc.common
2 START=90
3 . /lib/config/uci.sh
4 uci_load vis
5 start () {
6 interface=$(uci get vis.general.interface)
7 if [ "$interface" = "" ]; then
8 echo $1 Error, you must specify at least a network interface
9 exit
10 fi
11 vis_args=$interface
12
13 vis $vis_args >/dev/null 2>&1
14 }
15
16 stop () {
17 killall vis
18 }
19
20