summaryrefslogtreecommitdiff
path: root/scripts/internet
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/internet')
-rwxr-xr-xscripts/internet10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/internet b/scripts/internet
deleted file mode 100755
index 942eefe..0000000
--- a/scripts/internet
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-[ "$(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 eth0 | grep 192.168.)" || IP="$(ip address | grep wlo | grep 192.168. )"
-
-IP="${IP%/*}"
-IP="${IP##* }"
-
-echo $CONNECTION $IP