diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-02-26 21:08:01 +0100 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-02-26 21:08:01 +0100 |
commit | 94895130d192859f0778db320b9834c5d35c6d46 (patch) | |
tree | e809904b82035de26713586cbcf72453f241ba01 /scripts/wifi.sh | |
parent | 4e98dd2280fb9e9e7e6513d2a0ec52bdf67aa488 (diff) | |
download | dotfiles-94895130d192859f0778db320b9834c5d35c6d46.tar.gz dotfiles-94895130d192859f0778db320b9834c5d35c6d46.zip |
added check of operation state for wifi.sh; fixed typo in eth.sh
Diffstat (limited to 'scripts/wifi.sh')
-rwxr-xr-x | scripts/wifi.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wifi.sh b/scripts/wifi.sh index 51262c6..8cd8f41 100755 --- a/scripts/wifi.sh +++ b/scripts/wifi.sh @@ -5,6 +5,9 @@ if="${BLOCK_INSTANCE:-wlp3s0}" [[ ! -d /sys/class/net/${if} ]] && exit 0 +# operstate: down, up +[[ "$(cat /sys/class/net/$if/operstate)" = 'down' ]] && exit 0 + show_ap_mac=0 show_ap_quality=0 show_ap_name=0 |