Date: Tue, 1 Nov 2005 23:43:29 -0800 (PST) From: Rob <spamrefuse@yahoo.com> To: freebsd-stable@freebsd.org Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: GENERIC and DEFAULTS Message-ID: <20051102074329.50145.qmail@web36202.mail.mud.yahoo.com>
next in thread | raw e-mail | index | archive | help
Kris Kennaway wrote:
>
> You've clearly never spent much time on the FreeBSD
> support forums, where every few days someone posts
> for help
>
> 1) with an error caused by removing one of those
> "Do not remove this!" lines, and
>
> 2) for help on getting X working when they forgot
> to add /dev/io and /dev/mem to their kernel.
I believe *BSD can offer a better solution for such
issues.
For example, when having firewall_enable="YES",
then /etc/rc.d/ipfw does:
if ! ${SYSCTL} net.inet.ip.fw.enable; then
if ! kldload ipfw; then
warn unable to load firewall module.
return 1
fi
fi
So if ipfw is not supported by the kernel, this
script will automagically load the ipfw module,
or issue a warning what is missing.
(Similarly, but not yet implemented, /etc/rc.d/sshd
should automagically load the random module, if
not in the kernel).
My point is then to follow this strategy also for X:
instead of a DEFAULTS file, have a /etc/rc.d/xdm
script, which starts X and loads the modules io/mem
if needed.
Rob.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051102074329.50145.qmail>
