From owner-freebsd-stable@FreeBSD.ORG Tue Feb 1 13:51:37 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2912E1065673 for ; Tue, 1 Feb 2011 13:51:37 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id D392C8FC19 for ; Tue, 1 Feb 2011 13:51:36 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PkGdr-0000fT-GF for freebsd-stable@freebsd.org; Tue, 01 Feb 2011 14:51:35 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Feb 2011 14:51:35 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Feb 2011 14:51:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Tue, 01 Feb 2011 14:51:24 +0100 Lines: 10 Message-ID: References: <20110201123506.GA97242@fbsd.t60.cpu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <20110201123506.GA97242@fbsd.t60.cpu> X-Enigmail-Version: 1.1.2 Subject: Re: Is /etc/rc.conf scriptable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 13:51:37 -0000 On 01/02/2011 13:35, Yue Wu wrote: > Hi list, > > I'm trying to do something to make rc.conf can act conditionally Technically, yes it can be done, but you shouldn't. It is in essence a shell script as it is sourced by other shell scripts but that's only because that approach is easiest to implement. Other tools may read rc.conf and they could break if they find something unexpected there.