diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-19 17:24:03 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-19 17:24:03 +0200 |
commit | e01c26286a18ec9e3b203b3ded104a654e85d12d (patch) | |
tree | 0415c6095f94ebf4f6cde7714ecf8d8c29988ef3 /.local/bin/status | |
parent | update (diff) | |
download | dotfiles-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-net | 7 |
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 " " |