added isp to output

This commit is contained in:
Johannes Findeisen 2020-07-25 01:42:32 +02:00
commit 02ff733048
No known key found for this signature in database
GPG key ID: 2128DE136929E573

View file

@ -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