summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 5243256..4a7078c 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -164,7 +164,7 @@ essid_is_valid() {
wlan_is_psk() {
local essid="$1"
- grep -q -x -F "$essid/PSK" "$essids_list"
+ awk -F/ -v essid="$essid" '$1==essid {print $2}' "$essids_list" | grep -q -F -w 'PSK'
}
config_iface() {