Follow r311103: add "pool" to the keywords that rc.d/ntpdate examines to

find a server address in ntp.conf.

Submitted by:	Ronald Klop <ronald@klop.ws>
Pointy hat to:	ian
This commit is contained in:
ian 2017-01-11 00:14:47 +00:00
parent 2e583dd4ba
commit bd44a39341

View File

@ -20,7 +20,7 @@ ntpdate_start()
if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then
ntpdate_hosts=`awk ' ntpdate_hosts=`awk '
/^server[ \t]*127.127/ {next} /^server[ \t]*127.127/ {next}
/^(server|peer)/ { /^(server|peer|pool)/ {
if ($2 ~/^-/) {print $3} if ($2 ~/^-/) {print $3}
else {print $2}} else {print $2}}
' < "$ntpdate_config"` ' < "$ntpdate_config"`