Try to connect to the configured SSID when configuring WIFI.
This commit is contained in:
parent
f1df8a21f8
commit
b9322c85c0
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ wifi_service() {
|
||||||
connect_wifi() {
|
connect_wifi() {
|
||||||
systemctl restart connman 2>/dev/null
|
systemctl restart connman 2>/dev/null
|
||||||
connmanctl enable wifi 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
|
set_powersave 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue