From f964c2cb48308d98b83ae92448a201e9f8a30cea Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 14 Jun 2023 12:30:07 +0200 Subject: up --- .local/bin/status/sb-net | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.local/bin/status/sb-net') diff --git a/.local/bin/status/sb-net b/.local/bin/status/sb-net index 87d2438..50cc9a5 100755 --- a/.local/bin/status/sb-net +++ b/.local/bin/status/sb-net @@ -1,9 +1,13 @@ #!/bin/sh -if ifconfig | grep '^tun' >/dev/null 2>&1; then +case $(hostname -s) in + mother|po-rbo) ping="ping -c1 -w1 1.1.1.1" ;; + mars) ping="ping -c1 -t1 1.1.1.1" ;; +esac +if ifconfig | grep -E '^tun|^vpn' >/dev/null 2>&1; then echo -n " " fi -if ! ping -q -c1 -t1 1.1.1.1 >/dev/null 2>&1; then +if ! $ping >/dev/null 2>&1; then echo "ﰸ " return fi -- cgit v1.2.3