summaryrefslogtreecommitdiff
path: root/files/sbin/setup_router
diff options
context:
space:
mode:
authorDarkeye <postfach@martinmichel.info>2011-01-21 18:38:41 (GMT)
committerDarkeye <postfach@martinmichel.info>2011-01-21 18:38:41 (GMT)
commitad9f2144b7cc4b1328fb721da4cf98e07fe65525 (patch)
tree98bf5172021b1441909406dab0b9c57eb351e7d0 /files/sbin/setup_router
parent2ade89a3e11d8a3d26319ae2f410fcc7b2c14e95 (diff)
moved batman-adv gw_mode to uci
Diffstat (limited to 'files/sbin/setup_router')
-rwxr-xr-xfiles/sbin/setup_router8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/sbin/setup_router b/files/sbin/setup_router
index 84457a1..5e990d6 100755
--- a/files/sbin/setup_router
+++ b/files/sbin/setup_router
@@ -25,7 +25,8 @@ if [[ $router = "j" ]]
uci set dhcp.mesh.end_ip=10.17.$oct3.254
uci commit dhcp
# Batman Server Mode
- batctl gw server
+ uci set batman-adv.bat0.gw_mode=server
+ uci commit batman-adv
else
# Act as a node only
uci del dhcp.mesh
@@ -36,8 +37,9 @@ if [[ $router = "j" ]]
uci commit network
echo "Der Router wird als normaler Node konfiguriert"
echo
- # Batman Server Mode
- batctl gw client
+ # Batman Clientr Mode
+ uci set batman-adv.bat0.gw_mode=client
+ uci commit batman-adv
fi
uci commit
#TODO: Generate Subnet
contact: Jan Huwald // Impressum