summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-13 15:53:53 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-13 17:30:34 +0200
commitc6a522c2da6ccb4ae07b07745409b2eeeb545d34 (patch)
treeab4248713f836930838139eed59c9a953d8b7e10 /setup-interfaces.in
parent9da508d6a39eb24fdc70eb5a525be58d2c06202a (diff)
downloadalpine-conf-c6a522c2da6ccb4ae07b07745409b2eeeb545d34.zip
setup-interfaces: allow wifi networks that has more than PSK
The authentication suites may be a list. Check if PSK is a part of the list instead of checking that it is the only authentication suite. ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518
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() {