routing/batmand/files/etc/init.d/vis
Marek Lindner 1180180554 batmand: adjust folder name to application name
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
2013-04-24 23:27:19 +08:00

19 lines
294 B
Bash

#!/bin/sh /etc/rc.common
START=90
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
}