On Monday 21 February 2005 14:20, Jason Kraftcheck wrote: > I use Debian rather than RH/Fedora, so perhaps this isn't possible for > you. �But why mess with all this aliasing stuff to load modules on > demand? �I thought that was for seldom-used drivers to save some memory, > etc. �That obviously isn't the case for a lirc driver on a mythtv box. > On Debian, I just add lirc_i2c to /etc/modules. �It is then > unconditionally loaded early in the boot sequence. �I would be surprised > if RH/Fedora did not have an equivalent mechanism.
Things changed quite a bit with FC3 and udev. Simply having the alias defs in
modprobe.conf (or modules.conf w/2.4 kernels) was sufficient to get the
modules loaded when needed with earlier FC/RH versions. There's been no RH/FC
"unconditionally load this" feature in the past, to the best of my knowledge.
I will say that I do rather like the Debian way of handling this. I have yet
to find the "right" way to do this for FC3, but I'm in the process of hacking
something into rc.sysinit that should do the job, based solely on the
contents of modprobe.conf, modeled after the way FC3 loads modules for sound
cards. And to confirm, I just checked, everything now auto-loads perfectly on
my test box with a few additions to rc.sysinit. Patch attached for those who
care to try it out.
--
Jarod Wilson
[EMAIL PROTECTED]
Got a question? Read this first...
http://catb.org/~esr/faqs/smart-questions.html
MythTV, Fedora Core & ATrpms documentation:
http://wilsonet.com/mythtv/
MythTV Searchable Mailing List Archive
http://www.gossamer-threads.com/lists/mythtv/
--- /etc/rc.d/rc.sysinit-orig 2004-11-01 12:31:10.000000000 -0800
+++ /etc/rc.d/rc.sysinit 2005-02-21 15:13:58.344675000 -0800
@@ -206,7 +206,17 @@
load_module $module
done
-echo -n $" audio"
+# video4linux capture drivers
+for module in `/sbin/modprobe -c | awk '/^alias[[:space:]]+char-major-81-[[:digit:]]+[[:space:]]/ { print $3 }'`; do
+ load_module $module
+done
+
+# lirc drivers
+for module in `/sbin/modprobe -c | awk '/^alias[[:space:]]+char-major-61+[[:space:]]/ { print $3 }'`; do
+ load_module $module
+done
+
+echo -n $" multimedia"
# Everything else (duck and cover)
for module in $other ; do
pgpN6voE7dsnP.pgp
Description: PGP signature
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
