summaryrefslogtreecommitdiff
path: root/.local/bin/internet
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/internet')
-rwxr-xr-x.local/bin/internet4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/internet b/.local/bin/internet
index 70e48ec..942eefe 100755
--- a/.local/bin/internet
+++ b/.local/bin/internet
@@ -2,9 +2,9 @@
[ "$(connmanctl services | grep "Wired" | awk -F' ' '{print $2}')" = "Wired" ] && CONNECTION="Wired" || CONNECTION="$(connmanctl services | grep '*' | awk -F' ' '{print $2}')"
-[ "$CONNECTION" = "Wired" ] && IP="$(ip address | grep dynamic | grep 192.168.)" || IP="$(ip address | grep wlo | grep 192.168. )"
+[ "$CONNECTION" = "Wired" ] && IP="$(ip address | grep eth0 | grep 192.168.)" || IP="$(ip address | grep wlo | grep 192.168. )"
IP="${IP%/*}"
IP="${IP##* }"
-printf $CONNECTION
+echo $CONNECTION $IP