Question about current rc scripts
chris+freebsd-stable at schug.net
Thu Jun 22 16:24:34 UTC 2006
On Tue, Jun 20, 2006, M.Hirsch wrote:
> As stated in my initial post, I used "BEFORE: rcconf" up to and
> including 6.0.
> So what is an "appropriate BEFORE entry" for 6-STABLE?
This might be a crude hack but _should_ (untested) work. What about
wrapping rcorder like this ...
| echo '/very/first/rcscript'
| exec /sbin/rcorder "$@"
and inject it using an alias in rc.conf
| alias rcorder='/usr/local/sbin/rcorder.local'
Since /very/first/rcscript will be called during system shutdown as
well, it might be reasonable to have a 'faststart' case statement in
| case "$1" in
| faststart ) ... ;;
Hope this helps (and actually works)
More information about the freebsd-stable