summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-net
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
commita190993b0579dfaacd5fe75a49fcb3214e2cb1bf (patch)
tree128708ae1ca9f6e5ab433e73542d7b52125357df /.local/bin/status/sb-net
parentup (diff)
downloaddotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.gz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.bz2
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.xz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.zst
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.zip
up
Diffstat (limited to '.local/bin/status/sb-net')
-rwxr-xr-x.local/bin/status/sb-net23
1 files changed, 0 insertions, 23 deletions
diff --git a/.local/bin/status/sb-net b/.local/bin/status/sb-net
deleted file mode 100755
index 50fdc0a..0000000
--- a/.local/bin/status/sb-net
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-echo -n "^c#a89984^"
-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
-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
- echo "󰲜"
- exit
-fi
-
-echo "󰲝"