cvs commit: src/etc/rc.d early.sh
mtm at FreeBSD.Org
Wed Oct 10 10:31:05 PDT 2007
On Wed, Oct 10, 2007 at 05:07:45PM +0200, Dag-Erling Sm??rgrav wrote:
> Dag-Erling Sm??rgrav <des at des.no> writes:
> > I must confess I don't really see the point of this change. Yes, people
> > can write rc.d scripts instead, but not (by far) as easily as they can
> > add a line or two to rc.early.
> > If the problem is that rc.early is sourced by early.sh which is sourced
> > by rc, simply rename early.sh to early so it runs in a subshell instead.
> Doug, any chance you can back out your change and apply to have
> src/etc/rc.d/early.sh renamed to src/etc/rc.d/early instead?
Whatever we end up doing just an FYI that the reason it's a .sh script
is because it was sourced directly into the pre-rc.d /etc/rc. If
we change it to be sourced in a sub-shell we will break rc.early scripts
that define/modify environment variables that later scripts depend on.
Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55
mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org
More information about the cvs-all