On Mon, 12 Feb 2001 10:01:31 John Gay wrote:
> This is the RedHat way. Does anyone know the Debian way?
Right, the quick guide to modules in debian.
mbf at greenspot:~$ man 5 modules
The /etc/modules file contains the names of kernel modules
that are to be loaded at boot time, one per line. Argu-
ments can be given in the same line as the module name.
Comments begin with a `#', and everything on the line
after them are ignored.
So that's where the modules you want modprobed go.
I find that a slightly better (and more modular) way of doing options for
modules is to create a bunch of files in /etc/modutils.
All files in /etc/modutils and the contents of /etc/modutils/arch/<machine
architecture - e.g. i386> are compiled into /etc/modules.conf when you run
update-modules (which you should do every time you change anything in
/etc/modutils. Don't edit /etc/modules.conf directly unless you like to see
your settings getting blown away.
mbf at greenspot:/etc/modutils$ cat sound
options sb io=0x0220 irq=5 dma=1 dma16=0
options opl3 io=0x0388
mbf at greenspot:/etc$ cat modules
Oh, and if you're building modules on the fly, make sure you 'depmod -a'
before you try loading them.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!