From e55392d16820f62324f6275e722cfe9637870505 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sat, 25 Jul 2020 01:42:32 +0200 Subject: [PATCH] added isp to output --- bin/myip.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/myip.sh b/bin/myip.sh index c3a701dc..f0c8f630 100755 --- a/bin/myip.sh +++ b/bin/myip.sh @@ -5,5 +5,13 @@ # Works too but very slow (a lot more features available): # curl ifconfig.me -wget -qO- http://ipecho.net/plain; echo +#wget -qO- http://ipecho.net/plain; echo + +MY_IP="`wget -qO- http://ipecho.net/plain`" + +echo $MY_IP + +MY_PROVIDER="`whois $MY_IP | awk '/role/{getline; print}' | awk -F ":" '{print $2}' | awk '{$1=$1;print}'`" + +echo $MY_PROVIDER