Bash script that checks internet connection