Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Adjust to "pool" usage in our standard ntp.conf, po...



details:   https://anonhg.NetBSD.org/src/rev/9eb51be1f107
branches:  trunk
changeset: 948303:9eb51be1f107
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Dec 25 13:42:02 2020 +0000

description:
Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.

diffstat:

 etc/rc.d/ntpdate |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r cdb5ea3ac398 -r 9eb51be1f107 etc/rc.d/ntpdate
--- a/etc/rc.d/ntpdate  Fri Dec 25 12:33:03 2020 +0000
+++ b/etc/rc.d/ntpdate  Fri Dec 25 13:42:02 2020 +0000
@@ -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_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 }



Home | Main Index | Thread Index | Old Index