more and fixes

This commit is contained in:
soraefir
2026-06-17 19:18:50 +02:00
parent ab9fea20da
commit 9936f538e1
8 changed files with 242 additions and 29 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
is_active() {
rfkill list wifi 2>/dev/null | grep -q "Soft blocked: yes"
}
case "$1" in
status)
is_active && echo true || echo false
;;
*)
if is_active; then
rfkill unblock all
echo false
else
rfkill block all
echo true
fi
;;
esac