From owner-svn-src-all@FreeBSD.ORG Sat Feb 6 15:32:43 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 104491065672; Sat, 6 Feb 2010 15:32:43 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 007B78FC1D; Sat, 6 Feb 2010 15:32:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o16FWgnd064438; Sat, 6 Feb 2010 15:32:42 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o16FWguS064436; Sat, 6 Feb 2010 15:32:42 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <201002061532.o16FWguS064436@svn.freebsd.org> From: Hajimu UMEMOTO Date: Sat, 6 Feb 2010 15:32:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203550 - in stable/8/etc: . rc.d X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 15:32:43 -0000 Author: ume Date: Sat Feb 6 15:32:42 2010 New Revision: 203550 URL: http://svn.freebsd.org/changeset/base/203550 Log: MFC r203200; Allow use of -6 option to "server" and "peer" in ntp.conf. Modified: stable/8/etc/rc.d/ntpdate Directory Properties: stable/8/etc/ (props changed) stable/8/etc/services (props changed) Modified: stable/8/etc/rc.d/ntpdate ============================================================================== --- stable/8/etc/rc.d/ntpdate Sat Feb 6 14:10:45 2010 (r203549) +++ stable/8/etc/rc.d/ntpdate Sat Feb 6 15:32:42 2010 (r203550) @@ -19,7 +19,9 @@ ntpdate_start() if [ -z "$ntpdate_hosts" -a -f ${ntpdate_config} ]; then ntpdate_hosts=`awk ' /^server[ \t]*127.127/ {next} - /^(server|peer)/ {print $2} + /^(server|peer)/ { + if ($2 ~/^-/) {print $3} + else {print $2}} ' < ${ntpdate_config}` fi if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then