From d53b0a07265463f3aca4f0afcfeb46b717d7c4ce Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 27 Jun 2024 14:20:43 +0200 Subject: [PATCH] update iw listing --- usr/bin/archboot-network.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-network.sh b/usr/bin/archboot-network.sh index 5383408d8..6ea3a4dce 100755 --- a/usr/bin/archboot-network.sh +++ b/usr/bin/archboot-network.sh @@ -40,7 +40,7 @@ _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 - iwctl station "${_INTERFACE}" get-networks | rg -o ' {6}(.{34}).*\*' -r '"$1"' | sd ' *$' ' _' + } _wireless() { @@ -60,7 +60,9 @@ _wireless() { _essid_scan | _dialog --title " Network Configuration " --no-mouse --gauge "Scanning 5 second(s) for SSIDs with interface ${_INTERFACE}..." 6 60 #shellcheck disable=SC2086,SC2046 if _dialog --cancel-label "${_LABEL}" --title " SSID Scan Result " --menu "Empty spaces in your SSID are replaced by '+' char" 13 60 6 \ - "RESCAN" "SSIDs" "HIDDEN" "SSID" $(_essid_list) 2>"${_ANSWER}"; then + "RESCAN" "SSIDs" "HIDDEN" "SSID" \ + iwctl station "${_INTERFACE}" get-networks |\ + rg -o ' {6}(.{34}).*\*' -r '"$1"' | sd ' *$' ' _' 2>"${_ANSWER}"; then _WLAN_SSID=$(cat "${_ANSWER}") _CONTINUE=1 if rg -q 'RESCAN' "${_ANSWER}"; then