summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-18 15:48:25 +0100
committerJoe <rbo@gmx.us>2024-01-18 15:48:25 +0100
commitd94ef4ca4c6cb7a04f8bca10c27942b3d8435070 (patch)
treedcee7672f3af35d1c33300594843ac2114d1a261 /.local/bin
parentup (diff)
downloaddotfiles-bsd-d94ef4ca4c6cb7a04f8bca10c27942b3d8435070.tar.gz
dotfiles-bsd-d94ef4ca4c6cb7a04f8bca10c27942b3d8435070.tar.bz2
dotfiles-bsd-d94ef4ca4c6cb7a04f8bca10c27942b3d8435070.tar.xz
dotfiles-bsd-d94ef4ca4c6cb7a04f8bca10c27942b3d8435070.tar.zst
dotfiles-bsd-d94ef4ca4c6cb7a04f8bca10c27942b3d8435070.zip
vpn
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/status/sb-net9
1 files changed, 8 insertions, 1 deletions
diff --git a/.local/bin/status/sb-net b/.local/bin/status/sb-net
index 837fbf3..e20a891 100755
--- a/.local/bin/status/sb-net
+++ b/.local/bin/status/sb-net
@@ -4,7 +4,14 @@ case $(hostname -s) in
mother|po-rbo) ping="ping -c1 -w1 9.9.9.9" ;;
mars) ping="ping -c1 -t1 9.9.9.9" ;;
esac
-if ifconfig | grep -E '^tun|^vpn|^wg' >/dev/null 2>&1; then
+ifc=$(ifconfig)
+if echo "$ifc" | grep -E '^wg' >/dev/null 2>&1; then
+ echo -n "󰞀 "
+fi
+if echo "${ifc}" | grep -E '^zt' >/dev/null 2>&1; then
+ echo -n " "
+fi
+if echo "${ifc}" | grep -E '^tun|^vpn' >/dev/null 2>&1; then
echo -n " "
fi
if ! $ping >/dev/null 2>&1; then