improve wifi reconect
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user