Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.
This commit is contained in:
parent
feae5f4f22
commit
5dd83105b3
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ntpdate,v 1.20 2009/08/03 18:43:48 perry Exp $
|
||||
# $NetBSD: ntpdate,v 1.21 2020/12/25 13:42:02 martin Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ntpdate
|
||||
@ -21,7 +21,7 @@ ntpdate_start()
|
||||
ntpdate_hosts=$(awk '
|
||||
/^#/ { next }
|
||||
/^(server|peer)[ \t]*127.127/ { next }
|
||||
/^(server|peer)/ { if ($2 ~ /^-[46]/)
|
||||
/^(server|peer|pool)/ { if ($2 ~ /^-[46]/)
|
||||
print $3
|
||||
else
|
||||
print $2 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user