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