[PARPORT] Re: Automatic module install

Gerhard Wiesinger (e9125884@student.tuwien.ac.at)
Wed, 1 Apr 1998 10:10:59 +0200 (METDST)

> Hello!
> To use the parallel harddisk adapter I have to use the following commands
> to get the necessary modules installed. (as root)
> insmod paride
> insmod comm
> insmod pd
> The real device which should be mounted is the /dev/pda1 device.
> Is it possible with some commands in /etc/conf.modules to automatically do
> the above command sequence when a mount request is done?
> Or is it possible to tell the kernel which modules should be loaded at
> bootup?

I found an ellegant solution for the problem:
In File /etc/conf.modules the following lines must be added:

alias block-major-45 pd
pre-install pd insmod comm
install pd insmod pd
install paride insmod paride

The line with "insmod comm" must be replaced with your hardware driver.

There is a solution with kerneld, which removes automatic the modules.
It has the drawback that if for example pd has been removed by kerneld and
a new mount request comes in that timeout period the mount will not
succeed. After approx. 5 the mount will succeed.

/etc/conf.modules looks like:
alias block-major-45 pd
pre-install pd insmod -k comm

To Guenther:
Maybe you could add this to your web pages and to the documentation.

Comments and better solutions are welcome.


-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --

This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:34 EST