diff --git a/rtc.sh b/rtc.sh index f3c610c..7ea3b20 100644 --- a/rtc.sh +++ b/rtc.sh @@ -18,11 +18,12 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.0.1 - 2019-06-10 - Pinging the NTP server for testing Internet connectivity instead of google.com. # Version 1.0 - 2019-01-08 - First commit. NTP_SERVER="0.pool.ntp.org" -if ! ping -q -w1 -c1 google.com &>/dev/null +if ! ping -q -w1 -c1 ${NTP_SERVER} &>/dev/null then echo "No Internet connection" exit 1 @@ -43,4 +44,4 @@ then else echo "Unable to sync." fi -exit 0 \ No newline at end of file +exit 0