From 68de7be7159b45aa7a20af0b4c83b3f32057f588 Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Mon, 10 Jun 2019 10:50:19 +0200 Subject: [PATCH] Version 1.0.1 - Testing Internet pinging NTP server Pinging the NTP server for testing Internet connectivity instead of google.com. --- rtc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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