summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/queen.leave
blob: 306c2f8efc37004a1206533525c113b6efbde6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh -e
. ../common.sh
. ../common_queen.sh

# do not announce gateway anymore
batctl gw client

# free gw IP
mesh_del_ipv4

# 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

# stop redirection httpd, remove GW IP from the addrs service httpd
# listens on
disable_httpd redirection
rm /tmp/redirection_target
change_service_httpd_listen
/etc/init.d/uhttpd restart
contact: Jan Huwald // Impressum