fff-hoods: set hood to none if on station mode

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Tim Niemeyer 2018-06-10 14:05:59 +02:00
parent 00767f92ad
commit c54fcf9b86
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ else
rm -f "$hoodfilecopy" # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place
rm -f "$sectorcopy" # always delete: no broadcast for isolated device
rm -f "$sectortmp"
uci -q del "system.@system[0].hood"
uci -q commit system
sleep 30 # Wait for the config AP, which may be created at the same time as this script has started