Bash script to check for internet connectivity.