mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix listing of networks
This commit is contained in:
parent
838bdce922
commit
4bdecdac0d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ essid_scan() {
|
|||
iwctl station "${INTERFACE}" scan
|
||||
# only show lines with signal '*'
|
||||
# kill spaces from the end and replace spaces with # between
|
||||
for dev in $(iwctl station "${INTERFACE}" get-networks | grep '\*' | cut -c 11-44 | sed -e 's#\ $##g' | sed -e 's| |#|g'); do
|
||||
for dev in $(iwctl station "${INTERFACE}" get-networks | grep '\*' | cut -c 1-41 | sed -e 's#\ .*$##g' -e 's#^.*\ \ ##g' -e 's| |#|g'); do
|
||||
echo "${dev}"
|
||||
[[ "${1}" ]] && echo "${1}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue