diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 13:32:54 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 13:32:54 (GMT) |
commit | ed254615ad04befe9f847879b3d78567c51f673b (patch) | |
tree | cee5bfabbb6a9aa707acd5e575ecfd195134c258 /files/common/etc/fsm/inetable/trans/ghost.leave | |
parent | 586b5073ab8b0b745e627a3e246e45e4052e6f8d (diff) |
fsm inetable: sync mesh iface w/ uci, use batctl gw off, reduce redundancy
- add mesh_add/del_ipv4 to set/unset IPv4 addresses of mesh iface; the
address is set using ifconfig to avoid ifudown+ifup but also updated
in UCI to maintain a consistent state
- use this function in queen, ghost and robinson state transitions
- use `batctl gw off` in robinson state: this allows to deliever local
DHCP replies while dropping the idea of announcing fake gateways
- ghost.leave reuses queen.leave
Diffstat (limited to 'files/common/etc/fsm/inetable/trans/ghost.leave')
-rwxr-xr-x | files/common/etc/fsm/inetable/trans/ghost.leave | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/files/common/etc/fsm/inetable/trans/ghost.leave b/files/common/etc/fsm/inetable/trans/ghost.leave index 747a05d..df16d99 100755 --- a/files/common/etc/fsm/inetable/trans/ghost.leave +++ b/files/common/etc/fsm/inetable/trans/ghost.leave @@ -2,16 +2,4 @@ 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 +./queen.leave "$1" |