LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to load a module at boot time (https://www.linuxquestions.org/questions/linux-software-2/how-to-load-a-module-at-boot-time-236132/)

appas 09-28-2004 05:04 AM

how to load a module at boot time
 
I have written a module for RH8 kernel version is 2.4.18 . Currently i am manually loading the module using insmod. Could someone please help me what must be done so that the module is automatically loaded at system boot time.

Vookimedlo 09-28-2004 06:04 AM

place your insmod command into your /etc/rc.d/rc.local file

d0odman 09-28-2004 06:04 AM

startup scripts
 
Put it in your startup scripts. There is bound to be something in your /etc directory that has some startup scripts in it. Just dump in your insmod/modprobe command in there.

chrisss 09-28-2004 06:19 AM

wel that really depends on the distro you are using.

for example in gentoo edit /etc/modules.autoload.d/

in debian check /etc/modutils/

chrisss 09-28-2004 06:27 AM

i missed the RH8 part sorry

I think you should use /etc/modules.conf

darkhorizon 09-28-2004 10:15 AM

what about in mandrake?

appas 09-29-2004 03:43 AM

Thanks for all the replies, i forget to mention a point which i need to pass parameters for the loading module and the values for the parameters are read from a file.
I wrote a script which get the required parameter values and then execute the insmod command. Now my requirement is where should the script be placed so that it is invoked automatically at boot time. Could someone help me on this or propose a better solution.

gloriant 09-29-2004 06:04 AM

Quote:

Originally posted by appas
Thanks for all the replies, i forget to mention a point which i need to pass parameters for the loading module and the values for the parameters are read from a file.
I wrote a script which get the required parameter values and then execute the insmod command. Now my requirement is where should the script be placed so that it is invoked automatically at boot time. Could someone help me on this or propose a better solution.

Correctly answered by

Quote:

Originally posted by Vookimedlo
place your insmod command into your /etc/rc.d/rc.local file


All times are GMT -5. The time now is 06:14 AM.