summaryrefslogtreecommitdiffstats
path: root/.local/bin/status
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-19 17:24:03 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-19 17:24:03 +0200
commite01c26286a18ec9e3b203b3ded104a654e85d12d (patch)
tree0415c6095f94ebf4f6cde7714ecf8d8c29988ef3 /.local/bin/status
parentupdate (diff)
downloaddotfiles-bsd-e01c26286a18ec9e3b203b3ded104a654e85d12d.tar.gz
dotfiles-bsd-e01c26286a18ec9e3b203b3ded104a654e85d12d.tar.bz2
dotfiles-bsd-e01c26286a18ec9e3b203b3ded104a654e85d12d.tar.xz
dotfiles-bsd-e01c26286a18ec9e3b203b3ded104a654e85d12d.tar.zst
dotfiles-bsd-e01c26286a18ec9e3b203b3ded104a654e85d12d.zip
update
Diffstat (limited to '.local/bin/status')
-rwxr-xr-x.local/bin/status/sb-net7
1 files changed, 4 insertions, 3 deletions
diff --git a/.local/bin/status/sb-net b/.local/bin/status/sb-net
index 97283af..2cc07da 100755
--- a/.local/bin/status/sb-net
+++ b/.local/bin/status/sb-net
@@ -1,8 +1,9 @@
#!/bin/sh
-if ifconfig | grep -F ' active' >/dev/null; then
- echo " "
+# if ifconfig | grep -F ' active' >/dev/null; then
+if ! ping -q -c1 -t1 8.8.8.8 >/dev/null 2>&1; then
+ echo " "
return
fi
-echo " "
+echo " "