improve wifi reconect

This commit is contained in:
PaulVua
2026-01-15 13:44:52 +01:00
parent e5770b09dc
commit 994bbf7a8d
2 changed files with 16 additions and 7 deletions

View File

@@ -62,6 +62,12 @@ SSH_TUNNEL_PORT=$(sqlite3 /var/www/nebuleair_pro_4g/sqlite/sensors.db "SELECT va
#need to wait for the network manager to be ready
sleep 20
# IMPORTANT: Always enable WiFi radio at boot (in case it was disabled by power save)
echo "Ensuring WiFi radio is enabled..."
nmcli radio wifi on
sleep 2
# Get the connection state of wlan0
STATE=$(nmcli -g GENERAL.STATE device show wlan0)