Click to See Complete Forum and Search --> : How to load modules at startup?


Marcel2008
01-17-2002, 01:41 PM
I want the bttv module to load on kernel startup. I can't seem to get this to work.

When i do modprobe bttv card=2, it is loaded.

Here's my modules.conf:


alias parport_lowlevel parport_pc
alias eth0 tulip
alias scsi_hostadapter ncr53c8xx
alias char-major-81 bttv
alias usb-controller usb-uhci
alias sound-slot-0 es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias char-major-195 NVdriver
options char-major-81 card=2


What is wrong with my setup?

I also have a philips webcam that uses bttv, maybe that's a problem? The webcam works ok.

[ 17 January 2002: Message edited by: Marcel2008 ]

slapNUT
01-17-2002, 02:44 PM
I depends on your distro. Some load modules from /etc/modules.conf some from /etc/conf.modules and my Mandrake loads from /etc/modules. You can look in /etc/rc.d/rc.modules if you have that and look for a line like this.
(cat /etc/modules; echo) | while read module args
That tells me that my modules are loaded from /etc/modules

If you just can't get it to load then just put the modprobe line in /etc/rc.d/rc.local.

Strike
01-17-2002, 02:57 PM
No distro uses /etc/modules.conf or /etc/conf.modules to determine what modules to load on boot. /etc/modules is the most common file that does the startup loading of modules (that is, contains a list of what to load).

slapNUT
01-17-2002, 03:07 PM
MODULES.CONF(5)
NAME
modules.conf - configuration file for loading kernel mod*ules

DESCRIPTION
The behavior of modprobe(8) (and depmod(8)) can be modified by the (optional) configuration file /etc/modules.conf.

My bad! :o