I've deleted the wrong script.

This commit is contained in:
Bartek Stalewski 2022-12-18 20:09:02 +01:00
parent c7c43b7c47
commit d10cc92faa
2 changed files with 15 additions and 6 deletions

View file

@ -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