From 91cf71f9ae86dd09ea67895e0bf2961ad35e103e Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 26 Oct 2022 18:56:56 -0700 Subject: [PATCH] Make ntp update protocol agnostic (#533) --- files/etc/cron.daily/update-clock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/etc/cron.daily/update-clock b/files/etc/cron.daily/update-clock index 1ce0085d..6bc33132 100755 --- a/files/etc/cron.daily/update-clock +++ b/files/etc/cron.daily/update-clock @@ -49,7 +49,7 @@ fi # NTP servers tend to be poorly advertised, so we have to use a bit of # heuristics to find them -for candidate in $(grep -i ntp /var/run/services_olsr | sed "s/^http:\/\/\(.*\):.*$/\1/") +for candidate in $(grep -i ntp /var/run/services_olsr | sed "s/^.*:\/\/\(.*\):.*$/\1/") do if $(ntpd -n -q -p ${candidate}); then logger -p notice -t update-time "Update clock from ${candidate}"