summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/ghost.leave
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/ghost.leave')
-rwxr-xr-xfiles/common/etc/fsm/inetable/trans/ghost.leave17
1 files changed, 17 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/trans/ghost.leave b/files/common/etc/fsm/inetable/trans/ghost.leave
new file mode 100755
index 0000000..747a05d
--- /dev/null
+++ b/files/common/etc/fsm/inetable/trans/ghost.leave
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+rm /tmp/ghost_since
+
+# free our gw ip
+ifconfig br-mesh 0.0.0.0
+
+# update status of our gateway ip
+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 internet redirection & splash iptable \ No newline at end of file
contact: Jan Huwald // Impressum