packages/net/batman-advanced/files/etc/init.d/batman-adv-kernelland
marek 7726d53791 batman-adv: adding support for the development branch
* offer choice between maint/dev branch
* make batctl optional upon user request
* upgrade src version
* fix EXTRA_CLFAGS

Thanks to Linus Luessing for his help.



git-svn-id: svn://svn.openwrt.org/openwrt/packages@19356 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-28 05:52:18 +00:00

30 lines
687 B
Bash

#!/bin/sh /etc/rc.common
START=90
start () {
interfaces=$(uci get batman-adv-kernelland.general.interface)
if [ "$interfaces" = "" ]; then
echo $1 Error, you must specify at least a network interface
exit
fi
echo $interfaces > /proc/net/batman-adv/interfaces
originator_interval=$(uci get batman-adv-kernelland.general.originator_interval)
log_level=$(uci get batman-adv-kernelland.general.log_level)
if [ $originator_interval ]; then
echo $originator_interval > /proc/net/batman-adv/orig_interval
fi
if [ $log_level ]; then
echo $log_level > /sys/module/batman_adv/parameters/debug 2>&-
fi
}
stop () {
echo "" > /proc/net/batman-adv/interfaces
}