autoload of kernel modules: how?

Paul Howarth paul at city-fan.org
Mon Jul 18 18:25:37 UTC 2005


On Mon, 2005-07-18 at 19:55 +0200, Eric Tanguy wrote:
> Le lundi 18 juillet 2005 à 12:16 +0100, Paul Howarth a écrit :
> > Timothy Murphy wrote:
> > > Paul Howarth wrote:
> > > 
> > > 
> > >>In FC4 you can create a script with a name ending in ".modules"
> > >>in /etc/sysconfig/modules and that will get run at around the same time
> > >>that rc.modules would be run. This is the "approved" may of doing this
> > >>now.
> > > 
> > > 
> > > Is this preferable to writing a modprobe command in rc.local ?
> > > Is rc.local frowned on now?
> > 
> > Depends when you want the module loaded. rc.local is executed right at 
> > the end of the boot process, but rc.modules or 
> > /etc/sysconfig/modules/*.modules is much earlier. If you need your 
> > module loading for some services to start, rc.local will be too late.
> > 
> > Paul.
> > 
> Ok what is the syntax of these *.modules files (ie if i want to load a
> module named spca5xx i have just to add it in this file) ?

It's a shell script, so you want something like:

modprobe spca5xx

> You say that /etc/sysconfig/modules/*.modules is much earlier but when ?

Look at /etc/rc.d/rc.sysinit - it's at around line 218.

It's just after the:

Initializing hardware... storage network audio done.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list