mirror of
https://github.com/MiSTer-devel/Scripts_MiSTer.git
synced 2026-05-17 03:04:34 +00:00
Version 1.0.1 - Testing Internet pinging NTP server
Pinging the NTP server for testing Internet connectivity instead of google.com.
This commit is contained in:
5
rtc.sh
5
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
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user