summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/queen-ghost.trans
blob: 7cd791de080828960a1585dff4becf5d4c9b67d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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