forked from freifunk-franken/firmware
configurehood: Wait for the config AP to build when in sta mode
The configurehood script is started at the same time for all routers. Thus, if one router sets up its configap, another may just go into wXsta at the very same moment. This creates a race condition between configap setup and wXsta download. To circumvent this, we add a sleep to the wXsta routine, so the wXsta always comes later, but is still run every 5 minutes. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
7b0add8c70
commit
696c983f22
|
@ -81,6 +81,8 @@ 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"
|
||||
|
||||
sleep 30 # Wait for the config AP, which may be created at the same time as this script has started
|
||||
|
||||
if ! wifiDelIface; then
|
||||
echo "Can't delete current wifi setup"
|
||||
|
|
Loading…
Reference in New Issue