Try to connect to the configured SSID when configuring WIFI.

This commit is contained in:
fewtarius 2023-08-18 03:27:42 +00:00
parent f1df8a21f8
commit b9322c85c0
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -91,6 +91,7 @@ wifi_service() {
connect_wifi() {
systemctl restart connman 2>/dev/null
connmanctl enable wifi 2>/dev/null
connmanctl connect $(connmanctl services 2>&1 | awk '/\s'${SSID}'\s/ {gsub(/^\*[A-z][A-z]/,""); print $2}') 2>/dev/null
set_powersave 2>/dev/null
}