Merge branch 'master' of git.unixpeople.org:hanez/home
This commit is contained in:
commit
6803268fbd
11845 changed files with 2196605 additions and 1015 deletions
11
bin/myip.sh
11
bin/myip.sh
|
|
@ -5,5 +5,14 @@
|
|||
# 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}'`"
|
||||
MY_PROVIDER="`whois $MY_IP | grep "descr" | head -n 1 | awk -F ":" '{print $2}' | awk '{$1=$1;print}'`"
|
||||
|
||||
echo $MY_IP: $MY_PROVIDER
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue