cvs commit: src/etc/rc.d early.sh

David O'Brien obrien at FreeBSD.org
Thu Oct 11 10:35:42 PDT 2007


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 at FreeBSD.org)


More information about the cvs-all mailing list