added isp to output
This commit is contained in:
parent
26395a7463
commit
02ff733048
1 changed files with 9 additions and 1 deletions
10
bin/myip.sh
10
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue