Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2017 00:14:47 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311907 - head/etc/rc.d
Message-ID:  <201701110014.v0B0ElS9061198@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"`



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701110014.v0B0ElS9061198>