From f697c220b7733f8c95bec7d5f045e8c226e7f524 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 27 Jun 2024 15:13:03 +0200 Subject: [PATCH] update iw listing --- usr/bin/archboot-network.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/bin/archboot-network.sh b/usr/bin/archboot-network.sh index 6e7380bb3..7066c04f8 100755 --- a/usr/bin/archboot-network.sh +++ b/usr/bin/archboot-network.sh @@ -40,7 +40,8 @@ _essid_list() { # only show lines with signal '*' # kill spaces from the end and replace spaces with + between # '+' character is one of 6 forbidden characters in SSID standard - for dev in $(iwctl station "${_INTERFACE}" get-networks | rg -o ' {6}(.{34}).*\*' -r '$1' | sd ' *$' ''); do + _ESSID+="$(iwctl station "${_INTERFACE}" get-networks | rg -o ' {6}(.{34}).*\*' -r '"$1' | sd ' *\n$' '"')" + for dev in ${_ESSID[@]}; do echo "\"${dev}\"" [[ "${1}" ]] && echo "${1}" done