https://ideatrash.net/2011/11/simpe-bash-wrapper-script-to-test-if.html
Simpe BASH wrapper script to test if you're online or not