From owner-freebsd-questions@FreeBSD.ORG Fri Dec 16 19:15:21 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28A5616A41F for ; Fri, 16 Dec 2005 19:15:21 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E41E43D5F for ; Fri, 16 Dec 2005 19:15:19 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.16.2.1] (unknown [172.16.2.1]) by strange.daemonsecurity.com (Postfix) with ESMTP id AC4E52E041; Fri, 16 Dec 2005 20:15:17 +0100 (CET) Message-ID: <43A31243.5010905@locolomo.org> Date: Fri, 16 Dec 2005 20:15:15 +0100 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= Organization: Locolomo.ORG User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Josh Endries References: <43A2F7CE.2010603@endries.org> <43A30792.1040208@locolomo.org> <43A30EB0.9000802@endries.org> In-Reply-To: <43A30EB0.9000802@endries.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Adding lines to /etc/rc.conf during sysinstall wihout being "REMOVED" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 19:15:21 -0000 Josh Endries wrote: > Here is my install.cfg: > > debug=YES > #nonInteractive=YES > #noWarn=YES > > disk=ad0 > partition=all > bootManager=standard > diskPartitionEditor > #diskPartitionWrite > > ad0s1-2=swap 4194304 none > ad0s1-1=ufs 524288 / > ad0s1-3=ufs 19531250 /home 1 > ad0s1-4=ufs 2097152 /tmp 1 > ad0s1-5=ufs 19531250 /usr 1 > ad0s1-6=ufs 0 /var 1 > diskLabelEditor > diskLabelCommit > > hostname=test > netDev=vr0 > nfs=192.168.0.3:/var/export/6.0-RELEASE/ > tryDHCP=YES > mediaSetNFS > > #nameserver=192.168.0.7 > > dists=base > distSetCustom > > installCommit > ... > command=cp /dist/pkgtools.conf /usr/local/etc > system > command=sed -i '' 's/md5/blf/' /etc/login.conf > system > command=cap_mkdb /etc/login.conf > system > command=pkg_add /dist/packages/All/my_base.tgz > system > > shutdown have you considered command=shutdown system ? it may not be the nicest way to do things though. > After sysinstall's "shutdown" and reboot, it comments out these > lines (using "#REMOVED: %s"). Converting them to something like this > in install.cfg didn't help, regardless of quotes: > > command=echo sshd_enable="YES" >> /etc/rc.conf > system two things: try this before shutdown: command=cp /etc/rc.conf /tmp/rc.conf system and also try to echo like this: command=echo 'sshd_enable="YES"' >> /etc/rc.conf I don't know how sysinstall treats quotes. Well, honestly, I don't _know_ the answer to your question, but I hope this helps. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2