Date: Thu, 11 Oct 2007 10:35:41 -0700 From: "David O'Brien" <obrien@FreeBSD.org> To: Doug Barton <dougb@FreeBSD.org> 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 Message-ID: <20071011173541.GC43603@dragon.NUXI.org> In-Reply-To: <alpine.BSF.0.9999.0710101744420.8687@qbhto.arg> References: <200710090730.l997UEEF042804@repoman.freebsd.org> <20071010002930.GA91077@dragon.NUXI.org> <20071010183542.GA58383@hub.freebsd.org> <alpine.BSF.0.9999.0710101744420.8687@qbhto.arg>
next in thread | previous in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071011173541.GC43603>
