1
0
Fork 0
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:
Alexandre Aubin 2021-11-27 18:41:44 +01:00
parent e6f4cddbd9
commit 1acbfc6c66

View file

@ -411,8 +411,11 @@ start)
sleep 1 sleep 1
# On single SSID, the hotspot interface will be wlan0 (or similar)
# in multissid, we additionally want to make sure that at least hotspot1 started
if [ "${multissid}" -gt 1 ]; then
i=0 i=0
while ! ip link show dev "${new_gateway_interface}" &>/dev/null; do while ! ip link show dev "hotspot1" &>/dev/null; do
sleep 1 sleep 1
if [ ${i} -gt 20 ]; then if [ ${i} -gt 20 ]; then
echo "Failed to see hotspot interface showing up in 'ip a'" echo "Failed to see hotspot interface showing up in 'ip a'"
@ -422,6 +425,7 @@ start)
i=$(($i + 1)) i=$(($i + 1))
done done
fi fi
fi
# For each registred ssid # For each registred ssid
for i in $(seq 0 $((${multissid} - 1))); do for i in $(seq 0 $((${multissid} - 1))); do