Re: Load kernel module automatically

Thunder from the hill (thunder@ngforever.de)
Thu, 6 Jun 2002 07:29:10 -0600 (MDT)


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/