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.
This commit is contained in:
birdybro
2022-06-22 12:16:39 -06:00
committed by GitHub
parent f94df3f231
commit 13ff174ac8

2
rtc.sh
View File

@@ -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