From e01c26286a18ec9e3b203b3ded104a654e85d12d Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 19 Aug 2022 17:24:03 +0200 Subject: update --- .local/bin/status/sb-net | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.local/bin/status/sb-net') 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 " " -- cgit v1.2.3