From owner-freebsd-questions Thu Jan 14 10:18:20 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10968 for freebsd-questions-outgoing; Thu, 14 Jan 1999 10:18:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA10961 for ; Thu, 14 Jan 1999 10:18:16 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #3) id 100qD4-0004Gv-00; Thu, 14 Jan 1999 17:05:30 +0000 Date: Thu, 14 Jan 1999 17:05:30 +0000 From: Ben Smithurst To: Alan Bawden Cc: freebsd-questions@FreeBSD.ORG Subject: Re: messing with /etc/rc.conf Message-ID: <19990114170530.A16311@scientia.demon.co.uk> References: <8Jan1999.042549.Alan@LCS.MIT.EDU> <19990108192746.B63511@scientia.demon.co.uk> <9Jan1999.220116.Alan@LCS.MIT.EDU> <19990110041754.A94335@scientia.demon.co.uk> <14Jan1999.003932.Alan@LCS.MIT.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <14Jan1999.003932.Alan@LCS.MIT.EDU> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alan Bawden wrote: > To review: I recently noticed that the line in my rc.conf file that used to > read: > > ntpdate_flags="-bs $(/usr/bin/awk '$1 == "server" || $1 == "peer" {print $2}' /etc/ntp.conf)" I note you found sysinstall was truncating this, and there seems to be a fairly simple solution after a quick look at the source. Just stick a "#" right at the end of the line (there must be a space before it, of course): ntpdate_flags="-bs $(/usr/bin/awk '$1 == "server" || $1 == "peer" {print $2}' /etc/ntp.conf)" # This is because sysinstall tries to keep comments, so it will copy the whole line, rather than stopping after the first matching quote. Look at /usr/src/release/sysinstall/config.c, the configRC_conf function around line 360. This works on my system anyway (3.0-current). -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message