auto-ping.sh: change public ip command
This commit is contained in:
parent
258d845248
commit
b62f0a9809
@ -44,7 +44,7 @@ withLoop(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
lanip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
|
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
|
clear
|
||||||
echo "Yay! The internet is working! :)"
|
echo "Yay! The internet is working! :)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user