From owner-cvs-all@FreeBSD.ORG Thu Oct 11 17:35:42 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12BCC16A417; Thu, 11 Oct 2007 17:35:42 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (trang.nuxi.org [74.95.12.85]) by mx1.freebsd.org (Postfix) with ESMTP id EE1D413C45A; Thu, 11 Oct 2007 17:35:41 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (obrien@localhost [127.0.0.1]) by dragon.nuxi.org (8.14.1/8.14.1) with ESMTP id l9BHZf7E043996; Thu, 11 Oct 2007 10:35:41 -0700 (PDT) (envelope-from obrien@dragon.nuxi.org) Received: (from obrien@localhost) by dragon.nuxi.org (8.14.1/8.14.1/Submit) id l9BHZfxo043995; Thu, 11 Oct 2007 10:35:41 -0700 (PDT) (envelope-from obrien) Date: Thu, 11 Oct 2007 10:35:41 -0700 From: "David O'Brien" To: Doug Barton Message-ID: <20071011173541.GC43603@dragon.NUXI.org> References: <200710090730.l997UEEF042804@repoman.freebsd.org> <20071010002930.GA91077@dragon.NUXI.org> <20071010183542.GA58383@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, des@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d early.sh X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 17:35:42 -0000 On Wed, Oct 10, 2007 at 06:13:36PM -0700, Doug Barton wrote: > On Wed, 10 Oct 2007, David O'Brien wrote: > >> On Tue, Oct 09, 2007 at 05:29:30PM -0700, David O'Brien wrote: >>> On Tue, Oct 09, 2007 at 07:30:14AM +0000, Doug Barton wrote: >>>> Modified files: >>>> etc/rc.d early.sh >>>> Log: >>>> Deprecate use of the early.sh script as advertised when the support >>>> for >>>> local rc.d scripts in the overall boot order was added. >>> >>> ". /etc/rc.early" in /etc/rc will stay? Correct? >> >> To be clear - I don't care if its a ".sh" or proper RCng script. >> I'm just looking for a hook to do something before anything else in >> /etc/rc.d runs. Commiting a /etc/rc.d/embryonic or /etc/rc.d/birth >> would be fine for my needs. > > Can we get a better idea of what it is you're trying to do? As Mike > pointed out, if it has to do with twiddling the environment a proper > rc.d script won't help since it'll be executed in a subshell. Just one example: on one of my sparc64 systems, I need to force ad0 down to UDMA33. I can get to the point of the first rc script before there is enough I/O that causes the disk & ata(4) to crap out. Thus I just want to run simple commands. Others may have stronger desires. > Also it's worth pointing out that currently early.sh is not the first thing > run. It is where I added it back to its place pre-RCng. :-) I'd like to remove that. -- -- David (obrien@FreeBSD.org)