From 5d4f5057ac8b42a76ae98562a74478e7d0550449 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 14 Feb 2023 14:49:03 +0100 Subject: up --- .local/bin/conky/getif.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to '.local/bin/conky/getif.sh') diff --git a/.local/bin/conky/getif.sh b/.local/bin/conky/getif.sh index 78a02ef..cf7d921 100755 --- a/.local/bin/conky/getif.sh +++ b/.local/bin/conky/getif.sh @@ -1,19 +1,17 @@ #!/bin/sh -os=$(cat "/tmp/os") - # ifconfig | command grep '^[a-z]' | awk '{print $1}' | sed '{/lo/d;s/://;}' -case $os in - 1) +case "$(hostname -s)" in + mother) if_main="eth1" if_alt="eth0" ;; - 2) + po-rbo) if_main="enx4ce1734c425a" if_alt="wlp1s0" ;; - 3) + fbsd-tp) if_main="em0" if_alt="wlan0" exit -- cgit v1.2.3