/etc/rc.d/earlyroot (fwd)

Yar Tikhiy yar at comp.chem.msu.su
Wed Feb 22 03:13:23 PST 2006


On Wed, Feb 22, 2006 at 09:03:25AM +0300, Dmitry Morozovsky wrote:
> Dear colleagues,
> 
> what about creating the following rc.d script? 
> 
> There are situations where you should modify something on a root partition, and 
> console is not available; early.sh is not suitable because when it executes 
> root is mounted r/o, and duplicating /etc/rc.d/root functionality in 
> /etc/rc.early or invoking it from there does not seem elegant nor appropriate 
> to me.
> 
> You thoughts?
> 
> Sincerely,
> D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
> ------------------------------------------------------------------------
> *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
> ------------------------------------------------------------------------
> -- 8< --
> #!/bin/sh
> #
> # $FreeBSD$
> #
> 
> # REQUIRE: root
> # BEFORE: mountcritlocal
> # KEYWORD: nojail
> 
> if [ -r /etc/rc.earlyroot ]; then
>         sh /etc/rc.earlyroot
> fi
> -- 8< --

Shouldn't every rc.d script contain a PROVIDE line?

-- 
Yar


More information about the freebsd-rc mailing list