Merge branch 'master' of git.unixpeople.org:hanez/home

This commit is contained in:
Johannes Findeisen 2020-10-06 01:55:31 +02:00
commit 6803268fbd
11845 changed files with 2196605 additions and 1015 deletions

View file

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