Re: Load kernel module automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 05, 2002 at 03:47:16PM -0400, Michael Zhu wrote:
> Hi, I've read the man page of modules.conf. But I
> still couldn't figure out how to solve my problem. I
> mean how to change the modules.conf file. Can I edit
> this file directly? Can anyone give me an example?

You say you read the page. ... Hey, wait a moment!
There are TWO files. /etc/modules.conf, that defines how to load modules
when they are requested (default parameters), which modules to load on
kernel request (autoloading) etc. And then there is another file -
/etc/modules, that is simply processed like
for each line do modprobe <the line>
during boot process.


So depending on what kind of module you have. If it's a module for some
device, you can make the alias in modules.conf and kernel will ask for
it when it's needed. It also works for some special cases (like iptables
- they don't even need an alias). For other things, especially network
device drivers you need to load them from /etc/modules

Note: ALL config files on unix are made so that they can be edited by
hand using eny editor.

--------------------------------------------------------------------------------
                  				- Jan Hudec `Bulb' <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux