summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.scripts/internet2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/internet b/.scripts/internet
index 5b31ff3..61a8197 100755
--- a/.scripts/internet
+++ b/.scripts/internet
@@ -13,7 +13,7 @@
if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
#wifiicon="$(awk '/^\s*w/ { print " ", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
- wifiicon=" "
+ ping -c1 example.com &>/dev/null && wifiicon=" " || wifiicon="轢 "
elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then
grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="睊 " || wifiicon="轢 "
fi