cleanup
This commit is contained in:
parent
ddbc24a33f
commit
ddd00d7844
16 changed files with 121 additions and 91 deletions
|
@ -3,7 +3,9 @@
|
|||
iwctl=(iwctl station "$(basename /sys/class/net/wlan*)")
|
||||
|
||||
rfkill unblock wlan
|
||||
"${iwctl[@]}" show | grep -q 'Scanning\s\+yes' || "${iwctl[@]}" scan
|
||||
if ! "${iwctl[@]}" show | grep -q 'Scanning\s\+yes'; then
|
||||
"${iwctl[@]}" scan
|
||||
fi
|
||||
|
||||
for _ in {0..29}; do
|
||||
if "${iwctl[@]}" show | grep -q '\s*State\s\+connected\s*$'; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue