Make ntp update protocol agnostic (#533)

This commit is contained in:
Tim Wilkinson 2022-10-26 18:56:56 -07:00 committed by GitHub
parent 4b305db099
commit 91cf71f9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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