fix "d" mess in batman adv package

git-svn-id: svn://svn.openwrt.org/openwrt/packages@14842 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
marek
2009-03-10 15:48:41 +00:00
parent 8606590790
commit 6d6abb3d3e
5 changed files with 22 additions and 22 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh /etc/rc.common
START=90
. /lib/config/uci.sh
uci_load batmand-adv-kernelland
uci_load batman-adv-kernelland
start () {
interfaces=$(uci get batmand-adv-kernalland.general.interface)
if [ "$interface" = "" ]; then
interfaces=$(uci get batman-adv-kernalland.general.interface)
if [ "$interfaces" = "" ]; then
echo $1 Error, you must specify at least a network interface
exit
fi
@ -14,8 +14,8 @@ start () {
echo $interface > /proc/net/batman-adv/interfaces
done
originator_interval=$(uci get batmand-adv-kernalland.general.originator_interval)
log_level=$(uci get batmand-adv-kernalland.general.log_level)
originator_interval=$(uci get batman-adv-kernalland.general.originator_interval)
log_level=$(uci get batman-adv-kernalland.general.log_level)
if [ $originator_interval ]; then
echo $originator_interval > /proc/net/batman-adv/originator_interval

View File

@ -1,15 +1,15 @@
#!/bin/sh /etc/rc.common
START=90
. /lib/config/uci.sh
uci_load batmand-adv-userspace
uci_load batman-adv-userspace
start () {
interface=$(uci get batmand-adv-userspace.general.interface)
interface=$(uci get batman-adv-userspace.general.interface)
if [ "$interface" = "" ]; then
echo $1 Error, you must specify at least a network interface
exit
fi
originator_interval=$(uci get batmand-adv-userspace.general.originator_interval)
visualisation_srv=$(uci get batmand-adv-space.general.visualisation_srv)
originator_interval=$(uci get batman-adv-userspace.general.originator_interval)
visualisation_srv=$(uci get batman-adv-userspace.general.visualisation_srv)
batman_args=""
if [ $originator_interval ]; then