Update menu-wifi-manager

This commit is contained in:
Script Proyect by HP3ICC 2024-09-16 22:46:43 +00:00
parent 6c151dfe20
commit 87b99dfb8b
1 changed files with 13 additions and 0 deletions

View File

@ -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