Click to See Complete Forum and Search --> : Question about modules


Marcel2008
06-19-2001, 06:47 PM
I've got my tv-card and usb-scanner running under linux! :D
So i've insmodded some modules, but i wanted to know if the modules will be automatically loaded again the next time i reboot?
The modules are bttv.o and scanner.o, should i edit modules.conf? I need to now if i can insert "insmod bttv card=2" and "insmod scanner" somewhere.

Craig McPherson
06-19-2001, 07:37 PM
First, this is just a matter of personal preference, but I always use modprobe isntead of insmod. Modprobe is much more fault tolerant than insmod and will often work when insmod won't. But since insmod is working for you, it doesn't matter.

What distro are you using? Debian has an /etc/modules file where you can put modules that you want inserted at boot. Other distros call it something different. They all do the same thing.

If all else fails, you can just put "modprobe bttv" in a startup script directly, if you can't find your distro's modules file.

Marcel2008
06-20-2001, 01:29 AM
I use RedHat 7.1, how can i put the command "insmod bttv card=2" into /etc/modules.conf?
The layout uses aliases, but how does this work?

MBMarduk
06-20-2001, 05:36 AM
You do that with 'options', like this (mine):

options dummy0 -o dummy0
options dummy1 -o dummy1
options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330


I think yours should say:

options bttv card=2

Marcel2008
06-20-2001, 07:33 AM
Originally posted by MBMarduk:
<STRONG>You do that with 'options', like this :

I think yours should say:

options bttv card=2
</STRONG>

I've added this to modules.conf, but no workie.

Need some more help