/etc/rc.d/earlyroot (fwd)
Dmitry Morozovsky
marck at rinet.ru
Tue Feb 21 22:03:28 PST 2006
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< --
More information about the freebsd-rc
mailing list