summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/queen.leave
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:52:15 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:52:15 (GMT)
commitcd9f7aca64327e29cc8acb55d94f21a2da03330e (patch)
treee6aafe13e28045fad9cad192dd14c4b7a419d2f9 /files/common/etc/fsm/inetable/trans/queen.leave
parentef0ab9ba3f0042f59c0a8f155fcb61187585303e (diff)
add FSM inetable
- implemented according to documentation - almost no tests so far
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/queen.leave')
-rwxr-xr-xfiles/common/etc/fsm/inetable/trans/queen.leave16
1 files changed, 16 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/trans/queen.leave b/files/common/etc/fsm/inetable/trans/queen.leave
new file mode 100755
index 0000000..660f2e2
--- /dev/null
+++ b/files/common/etc/fsm/inetable/trans/queen.leave
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+. ../common_queen.sh
+
+# do not announce gateway anymore
+batctl gw client
+
+# release IP in p2ptable (if we still own it)
+if we_own_our_ip; then
+ p2ptbl update $gwiptbl $oct3 free br-mesh
+fi
+
+# disable DHCP
+uci delete dhcp.mesh
+/etc/init.d/dnsmasq restart
+
+# TODO remove splash iptable
contact: Jan Huwald // Impressum