1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-03 13:12:44 +02:00

Fix wifi (re)connection when available SSID is not the first one in wpa_supplicant.conf (#1717)

This commit is contained in:
psallandre
2021-03-23 13:11:43 +01:00
committed by GitHub
parent 90b8a89a4d
commit 116c1ad53d

View File

@@ -165,7 +165,7 @@ wpa_action_watchdog_stop() {
}
ap_scanner_ssid() {
grep -v '^[[:space:]]*#' "$WPA_CONFIG" | grep "ssid=" | head -1 | cut -d "=" -f2
grep -v '^[[:space:]]*#' "$WPA_CONFIG" | grep "ssid=" | cut -d "=" -f2
}
ap_scanner_scan() {