Module Name:    src
Committed By:   martin
Date:           Fri Dec 25 13:42:02 UTC 2020

Modified Files:
        src/etc/rc.d: ntpdate

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


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/etc/rc.d/ntpdate

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/rc.d/ntpdate
diff -u src/etc/rc.d/ntpdate:1.20 src/etc/rc.d/ntpdate:1.21
--- src/etc/rc.d/ntpdate:1.20	Mon Aug  3 18:43:48 2009
+++ src/etc/rc.d/ntpdate	Fri Dec 25 13:42:02 2020
@@ -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 }

Reply via email to