summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-10-01 22:49:19 +0100
committerBlake Romero <blake@blkrom.com>2025-10-01 22:49:19 +0100
commitabfccda363cfa08a929f292c857862257bf81600 (patch)
tree9b03e9e6556a4d9fbfe5a674e10eecd1e65394f7
parent29557da3c9b39590177c9d9c3e451d74fb8ee065 (diff)
Ensure device is powered on when getting networks
-rwxr-xr-xiwd-control.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/iwd-control.sh b/iwd-control.sh
index daef965..d430529 100755
--- a/iwd-control.sh
+++ b/iwd-control.sh
@@ -4,6 +4,7 @@ menu=bemenu
device="wlan0"
get_networks(){
+ iwctl device "$device" set-property Powered on > /dev/null 2>&1
iwctl station "$device" scan > /dev/null 2>&1
iwctl station "$device" get-networks > /dev/null 2>&1
iwctl station "$device" get-networks \