mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update menu-wifi-manager
This commit is contained in:
parent
6c151dfe20
commit
87b99dfb8b
|
|
@ -176,6 +176,18 @@ if [ $? -eq 0 ]; then
|
|||
then
|
||||
sudo systemctl disable autoap.service
|
||||
fi
|
||||
while true; do
|
||||
if ping -c 1 noip.com >/dev/null 2>&1; then
|
||||
# Si recibe respuesta de ping, ejecutar docker-compose down
|
||||
cd /opt/wc
|
||||
docker-compose down
|
||||
|
||||
# Salir del ciclo y continuar con el script
|
||||
break
|
||||
fi
|
||||
# Esperar antes del siguiente intento de ping
|
||||
sleep 5
|
||||
done
|
||||
;;
|
||||
"2")
|
||||
if ! systemctl status autoap.service | grep "Active: active" >/dev/null 2>&1
|
||||
|
|
@ -204,6 +216,7 @@ else
|
|||
whiptail --title "WiFi Mannager" --msgbox "Esta opcion solo esta disponible para Raspberry / This option is only available for Raspberry" 0 50
|
||||
exit 0
|
||||
fi
|
||||
|
||||
EOF
|
||||
#
|
||||
chmod +x /bin/menu-wifi-manager
|
||||
|
|
|
|||
Loading…
Reference in New Issue