summaryrefslogtreecommitdiff
path: root/files/sbin/setup_router
diff options
context:
space:
mode:
authorDarkeye <postfach@martinmichel.info>2011-01-21 00:19:59 (GMT)
committerDarkeye <postfach@martinmichel.info>2011-01-21 00:19:59 (GMT)
commitcbf39e4d23d608227b4f92eb0e2e3b44b54f642b (patch)
tree68f2aa2c4b55bf50b42b796322d7755e71857f35 /files/sbin/setup_router
parenta3a804d7d16e8b15d41fbda91ac088cfa471f8a1 (diff)
Add batctl gw_mode in setup_router
Diffstat (limited to 'files/sbin/setup_router')
-rwxr-xr-xfiles/sbin/setup_router5
1 files changed, 4 insertions, 1 deletions
diff --git a/files/sbin/setup_router b/files/sbin/setup_router
index 460922b..b3b7ecd 100755
--- a/files/sbin/setup_router
+++ b/files/sbin/setup_router
@@ -17,6 +17,8 @@ if [[ $router = "j" ]]
uci set dhcp.mesh.leasetime=12h
uci set dhcp.mesh.interface=mesh
uci commit dhcp
+ # Batman Server Mode
+ batctl gw server
else
# Act as a node only
uci del dhcp.mesh
@@ -27,7 +29,8 @@ if [[ $router = "j" ]]
uci commit network
echo "Der Router wird als normaler Node konfiguriert"
echo
-
+ # Batman Server Mode
+ batctl gw client
fi
uci commit
#TODO: Generate Subnet
contact: Jan Huwald // Impressum