Re: Load kernel module automatically

From: Thunder from the hill (thunder@ngforever.de)
Date: Thu Jun 06 2002 - 08:29:10 EST


Hi,

On Wed, 5 Jun 2002, 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?
>
> Thanks.

/etc/modules.conf is quite useful if you work with /dev files w/0 devfs,
protocol families etc.

Example: you have your sound driver compiled as a module. In /dev you have
a couple of sound character devs with major number 14. Now you write an
alias for it into your /etc/modules.conf:

alias char-major-14 soundcore

Example: you have your ipv6 over ipv4 compiled as a module. Your protocol
family 41 requires ipv6 to be loaded. Therefore say:

alias net-pf-41 ipv6

Regards,
Thunder

-- 
ship is leaving right on time	|	Thunder from the hill at ngforever
empty harbour, wave goodbye	|
evacuation of the isle		|	free inhabitant not directly
caveman's paintings drowning	|	belonging anywhere

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 07 2002 - 22:00:27 EST