update iw listing

This commit is contained in:
Tobias Powalowski 2024-06-27 14:22:30 +02:00
parent d53b0a0726
commit 0e7fc8e089

View file

@ -61,8 +61,8 @@ _wireless() {
#shellcheck disable=SC2086,SC2046 #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 \ 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" \ "RESCAN" "SSIDs" "HIDDEN" "SSID" \
iwctl station "${_INTERFACE}" get-networks |\ $(iwctl station "${_INTERFACE}" get-networks |\
rg -o ' {6}(.{34}).*\*' -r '"$1"' | sd ' *$' ' _' 2>"${_ANSWER}"; then rg -o ' {6}(.{34}).*\*' -r '"$1"' | sd ' *\n$' ' _\n') 2>"${_ANSWER}"; then
_WLAN_SSID=$(cat "${_ANSWER}") _WLAN_SSID=$(cat "${_ANSWER}")
_CONTINUE=1 _CONTINUE=1
if rg -q 'RESCAN' "${_ANSWER}"; then if rg -q 'RESCAN' "${_ANSWER}"; then