auto-ping.sh: change public ip command
This commit is contained in:
@ -44,7 +44,7 @@ withLoop(){
|
||||
fi
|
||||
|
||||
lanip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
|
||||
pubip=$(curl -s http://whatismijnip.nl |cut -d " " -f 5)
|
||||
pubip=$(curl -s ifconfig.me)
|
||||
|
||||
clear
|
||||
echo "Yay! The internet is working! :)"
|
||||
|
Reference in New Issue
Block a user