feat: huge update
This commit is contained in:
parent
9c621760cf
commit
757b759b4a
47 changed files with 221 additions and 286 deletions
|
@ -2,11 +2,12 @@
|
|||
|
||||
iwctl=(iwctl station wlan0)
|
||||
|
||||
rfkill unblock wlan
|
||||
"${iwctl[@]}" show | grep -q 'Scanning\s\+yes' || "${iwctl[@]}" scan
|
||||
|
||||
for _ in {0..29}; do
|
||||
if "${iwctl[@]}" show | grep -q '\s*State\s\+connected\s*$'; then
|
||||
kill -36 "$(cat "$HOME/.cache/pidofbar")"
|
||||
kill -37 "$(cat "$HOME/.cache/pidofbar")"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue