mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Fix check that hotspot1 is up in multissid context
This commit is contained in:
parent
e6f4cddbd9
commit
1acbfc6c66
1 changed files with 14 additions and 10 deletions
|
@ -411,16 +411,20 @@ start)
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
i=0
|
# On single SSID, the hotspot interface will be wlan0 (or similar)
|
||||||
while ! ip link show dev "${new_gateway_interface}" &>/dev/null; do
|
# in multissid, we additionally want to make sure that at least hotspot1 started
|
||||||
sleep 1
|
if [ "${multissid}" -gt 1 ]; then
|
||||||
if [ ${i} -gt 20 ]; then
|
i=0
|
||||||
echo "Failed to see hotspot interface showing up in 'ip a'"
|
while ! ip link show dev "hotspot1" &>/dev/null; do
|
||||||
stop_hostapd
|
sleep 1
|
||||||
exit 1
|
if [ ${i} -gt 20 ]; then
|
||||||
fi
|
echo "Failed to see hotspot interface showing up in 'ip a'"
|
||||||
i=$(($i + 1))
|
stop_hostapd
|
||||||
done
|
exit 1
|
||||||
|
fi
|
||||||
|
i=$(($i + 1))
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For each registred ssid
|
# For each registred ssid
|
||||||
|
|
Loading…
Reference in a new issue