From 13ff174ac82daf311298fa80174fecb07ae8722d Mon Sep 17 00:00:00 2001 From: birdybro Date: Wed, 22 Jun 2022 12:16:39 -0600 Subject: [PATCH] Fix RTC.sh failing ping due to syntax (#90) Current syntax won't work because it can't ping that kind of address, it needs an IP. I also increased the wait time to reduce unnecessary failures upon people taking more than one second to ping to ntp. --- rtc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc.sh b/rtc.sh index 14acba2..c80c711 100644 --- a/rtc.sh +++ b/rtc.sh @@ -24,7 +24,7 @@ NTP_SERVER="0.pool.ntp.org" -if ! ping -q -w1 -c1 ${NTP_SERVER} &>/dev/null +if ! ping -4 -q -w1 -c1 ${NTP_SERVER} &>/dev/null then echo "No Internet connection" exit 1