From owner-freebsd-questions Thu Jan 14 13:31:55 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA11802 for freebsd-questions-outgoing; Thu, 14 Jan 1999 13:31:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from oolong.camellia.org (oolong.camellia.org [206.119.96.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA11789 for ; Thu, 14 Jan 1999 13:31:52 -0800 (PST) (envelope-from alan@oolong.camellia.org) Received: (from alan@localhost) by oolong.camellia.org (8.8.8/8.8.8+Erasmus) id QAA08399; Thu, 14 Jan 1999 16:30:35 -0500 (EST) (envelope-from alan) Date: Thu, 14 Jan 1999 16:30:35 -0500 (EST) 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> Message-Id: <14Jan1999.161508.Alan@LCS.MIT.EDU> From: Alan Bawden To: ben@scientia.demon.co.uk CC: freebsd-questions@FreeBSD.ORG In-reply-to: <19990114170530.A16311@scientia.demon.co.uk> (message from Ben Smithurst on Thu, 14 Jan 1999 17:05:30 +0000) Subject: Re: messing with /etc/rc.conf Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Date: Thu, 14 Jan 1999 17:05:30 +0000 From: Ben Smithurst ... 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