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 Lepore 2017-01-11 00:14:47 +00:00
parent e116c444a0
commit 6a4b451a11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311907

View File

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