From ea8d55b3b0379253e779685b0dcc4fcb1bac4d2b Mon Sep 17 00:00:00 2001 From: snj Date: Mon, 28 Dec 2020 16:00:19 +0000 Subject: [PATCH] Pull up following revision(s) (requested by martin in ticket #1164): etc/rc.d/ntpdate: revision 1.21 Adjust to "pool" usage in our standard ntp.conf, pointed out by Connor McLaughlan. --- etc/rc.d/ntpdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate index f131c55a571a..5c14f998dd64 100755 --- a/etc/rc.d/ntpdate +++ b/etc/rc.d/ntpdate @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: ntpdate,v 1.20 2009/08/03 18:43:48 perry Exp $ +# $NetBSD: ntpdate,v 1.20.50.1 2020/12/28 16:00:19 snj 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 }