Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 1999 17:05:30 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Alan Bawden <Alan@LCS.MIT.EDU>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: messing with /etc/rc.conf
Message-ID:  <19990114170530.A16311@scientia.demon.co.uk>
In-Reply-To: <14Jan1999.003932.Alan@LCS.MIT.EDU>
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>

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



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