batman-adv: hotplug script fixes
* call bat_config() instead of config_bat() (which does not exist) * support ap isolation config option * remove /etc/rc.common from script since it is not an init script anymore Signed-off-by: Filippo Sallemi <tonyputi@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@30457 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2011 OpenWrt.org
|
||||
|
||||
. /etc/functions.sh
|
||||
. /lib/batman-adv/config.sh
|
||||
|
||||
start_mesh() {
|
||||
@ -44,3 +45,15 @@ stop () {
|
||||
config_foreach stop_mesh mesh
|
||||
fi
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop $1
|
||||
start $1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start) start $2 ;;
|
||||
stop) stop $2 ;;
|
||||
restart) restart $2 ;;
|
||||
*) echo "Usage: batman-adv <start|stop|restart> [mesh instance]"
|
||||
esac
|
||||
|
Reference in New Issue
Block a user