Subject: Re: rc.d network vs NETWORK
To: None <current-users@netbsd.org>
From: Thilo Manske <thilo@.HEH.Uni-Oldenburg.DE>
List: current-users
Date: 04/21/2001 15:44:45
On Sat, Apr 21 2001 at 10:19:04 +1000, Luke Mewburn wrote:
> That said, NetBSD is an open source operating system. Part of the
> advantage of it is that you're free to modify /etc/rc to call
> rcorder with the extra directories you want to run; it's rather
> trivial, and /etc/rc shouldn't require updating from /usr/src/etc
> very often, since it's not likely to change much in the future.
Why not have a configuration variable like "rc_files" or something
like that in rc.conf? Adding additional rc-dirs that way would be even
more trivial and less dirty...
A simple implementation of that idea would be this:
in /etc/defaults/rc.conf:
rc_files='/etc/rc.d/*'
or
local_rc_files='';
in /etc/rc:
files=`eval rcorder -s nostart $rc_files`
or
files=`eval rcorder -s nostart /etc/rc.d/* $local_rc_files`
(instead of files=`rcorder ...`)
DISCLAIMER: I haven't tried this, it's for demonstration only :-)
--
Dies ist Thilos Unix Signature! Viel Spass damit.