summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/queen-ghost.trans
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/queen-ghost.trans')
-rwxr-xr-xfiles/common/etc/fsm/inetable/trans/queen-ghost.trans15
1 files changed, 15 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/trans/queen-ghost.trans b/files/common/etc/fsm/inetable/trans/queen-ghost.trans
new file mode 100755
index 0000000..7cd791d
--- /dev/null
+++ b/files/common/etc/fsm/inetable/trans/queen-ghost.trans
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+. ../common_queen.sh
+
+# store since when we are a ghost
+date +%s >/tmp/ghost_since
+
+# do not announce gateway anymore
+batctl gw client
+
+# update status of our gateway ip
+if we_own_our_ip; then
+ p2ptbl update $gwiptbl $oct3 "ghost\t$NodeId" br-mesh
+fi
+
+# TODO: setup redirection of all traffic to another gateway
contact: Jan Huwald // Impressum