LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Load module permanent (modprobe) (https://www.linuxquestions.org/questions/linux-newbie-8/load-module-permanent-modprobe-138104/)

Beuzekom 01-24-2004 08:22 AM

Load module permanent (modprobe)
 
All,

I am using some software that is using certain modules to do timing. Every time I reboot the PC i need to /sbin/modprobe mymodule.

How can I save this configuration so that the next time I reboot the machine do not need to modprobe the module?

Thanks!

Quis 01-24-2004 08:47 AM

make a bash script:

#!/bin/bash
modprobe <mymodule>

name it <mymodscript>
make it executeable: chmod +x <mymodscript>
put in /etc/init.d
make a symlinc to you runlevel:
ln -s /etc/init.d/<mymodscript> /etc/rc5.d/<S50mymodscipt>

Beuzekom 01-24-2004 09:05 AM

Quis!

Thanks it is working - also just tried to add the following

/sbin/modprobe mymodule to the file /etc/rc.d/rc.local

Also seems to be working. Is there a difference betwene your way and the one described above?


All times are GMT -5. The time now is 04:16 AM.