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

next in thread | previous in thread | raw e-mail | index | archive | help
   Date: Thu, 14 Jan 1999 17:05:30 +0000
   From: Ben Smithurst <ben@scientia.demon.co.uk>
   ...
   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):
   ...
   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).

Bleaugh!  You're absolutely right, that does do the trick...

There's a comment before configRC_conf() that says it is "pretty gross and
needs re-writing", and I could easily imagine that a careful re-write would
no longer have this property, so, in the interests of robustness, I think
I'll stick to the solution I've already adopted, which is to put the real
definition of that variable into my rc.conf.local.

Anyway, thanks for your help.  I think it would be safe to say that we've
both found this experience educational.

				- Alan

P.S.  I just submitted a suggestion for a better comment for the front of
rc.conf, so that in the future, people editing that file will know the
rules for game they are playing.

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?14Jan1999.161508.Alan>