From owner-cvs-all Sun Mar 17 15:11:22 2002 Delivered-To: cvs-all@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 22A3A37B400; Sun, 17 Mar 2002 15:11:15 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020317231114.QMXY1147.rwcrmhc52.attbi.com@blossom.cjclark.org>; Sun, 17 Mar 2002 23:11:14 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g2HNBDq57272; Sun, 17 Mar 2002 15:11:13 -0800 (PST) (envelope-from cjc) Date: Sun, 17 Mar 2002 15:11:13 -0800 From: "Crist J. Clark" To: Doug Barton Cc: Makoto Matsushita , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc Message-ID: <20020317151113.W29705@blossom.cjclark.org> References: <20020317221213Y.matusita@jp.FreeBSD.org> <20020317121422.I3758-100000@master.gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020317121422.I3758-100000@master.gorean.org>; from DougB@FreeBSD.ORG on Sun, Mar 17, 2002 at 12:15:27PM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Mar 17, 2002 at 12:15:27PM -0800, Doug Barton wrote: > On Sun, 17 Mar 2002, Makoto Matsushita wrote: > > > > > dougb> Modified files: > > dougb> etc rc > > dougb> Log: > > dougb> Add a late rc.sysctl pass to catch sysctl's for things that were > > dougb> not loaded yet on the first pass. > > > > Are there any chances that we can distinguish "the early phase" and > > "the latter phase" inside /etc/rc.sysctl? > > Well, I was trying to keep it simple, but take a look at the latest > version. Just remember, you asked for it. :) I still kind of like the idea of breaking /etc/sysctl.conf into sections and then being able to load these individual sections at separate times by running, /etc/rc.sysctl
Even if the quick implementation I wrote as a proof of concept is a quite kludgey http://docs.freebsd.org/cgi/getmsg.cgi?fetch=36719+0+archive/2002/freebsd-arch/20020210.freebsd-arch But I should also point out, doug, that if this is the kind of thing you are thinking about by adding those 'first' and 'last' arguments, it won't work the way it is written. When you load a file using the, . file Syntax, the commands in the file are run by the current shell, the environment is not changed, including the positional parameters ($1, $2, $*, etc.). As far as I know, . /etc/rc.sysctl first Just tosses out the 'first;' it isn't actually used at all. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message