I've deleted the wrong script.
This commit is contained in:
parent
c7c43b7c47
commit
d10cc92faa
2 changed files with 15 additions and 6 deletions
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "no wifi" ;;
|
||||
up) [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip" ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue