title: Public IP Ping and email bash script
body: <p>My current Public IP is DHCP so when it changes I have to reconfigure my L2TP VPN settings on my devices which can be quite annoying if i'm outside the network at the time of change..... Can I setup a bash script on a raspberry pi possibly to ping my public ip from inside my network then send me a email when it changes</p>
  
  <p>Having never done any scripting could anyone provide me with some tutorials or guides on how to do this?</p>