mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
update iw listing
This commit is contained in:
parent
f697c220b7
commit
c2c186262b
1 changed files with 2 additions and 5 deletions
|
@ -40,11 +40,8 @@ _essid_list() {
|
||||||
# only show lines with signal '*'
|
# only show lines with signal '*'
|
||||||
# kill spaces from the end and replace spaces with + between
|
# kill spaces from the end and replace spaces with + between
|
||||||
# '+' character is one of 6 forbidden characters in SSID standard
|
# '+' character is one of 6 forbidden characters in SSID standard
|
||||||
_ESSID+="$(iwctl station "${_INTERFACE}" get-networks | rg -o ' {6}(.{34}).*\*' -r '"$1' | sd ' *\n$' '"')"
|
_ESSID+="$(iwctl station "${_INTERFACE}" get-networks | rg -o ' {6}(.{34}).*\*' -r '"$1' | sd ' *\n$' '" _')"
|
||||||
for dev in ${_ESSID[@]}; do
|
echo ${_ESSID[@]}
|
||||||
echo "\"${dev}\""
|
|
||||||
[[ "${1}" ]] && echo "${1}"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_wireless() {
|
_wireless() {
|
||||||
|
|
Loading…
Reference in a new issue