mirror of https://github.com/aredn/aredn.git
Make ntp update protocol agnostic (#533)
This commit is contained in:
parent
4b305db099
commit
91cf71f9ae
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue