svn commit: r311907 - head/etc/rc.d

Ian Lepore ian at FreeBSD.org
Wed Jan 11 00:14:48 UTC 2017


Author: ian
Date: Wed Jan 11 00:14:47 2017
New Revision: 311907
URL: https://svnweb.freebsd.org/changeset/base/311907

Log:
  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 at klop.ws>
  Pointy hat to:	ian

Modified:
  head/etc/rc.d/ntpdate

Modified: head/etc/rc.d/ntpdate
==============================================================================
--- head/etc/rc.d/ntpdate	Wed Jan 11 00:02:51 2017	(r311906)
+++ head/etc/rc.d/ntpdate	Wed Jan 11 00:14:47 2017	(r311907)
@@ -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"`


More information about the svn-src-head mailing list