Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I would like to load automatically a module at boot time on Fedora Core 2, but before the scripts start, so I don't want to put the module name in the file /etc/rc.local.
Does anyone know how to do?
Thanks
you could do it at the head of the rc.sysinit or whatever the first script is called on Fedora. Is this still too late?
You could also compile it into the kernel so you don't have to load it. Another possibility is to create a custom initrd. The initrd file in your /boot is probably a gzip file. You can unzip it and then mount it somewhere as a loop back device to see what's on it. The kernel docs give an explanation how the initrd thing works.
Re: How to load a module at boot time om Feodra 2?
Quote:
Originally posted by jp2004 Hello,
I would like to load automatically a module at boot time on Fedora Core 2, but before the scripts start, so I don't want to put the module name in the file /etc/rc.local.
Does anyone know how to do?
Thanks
Re: How to load a module at boot time om Feodra 2?
Quote:
Originally posted by jp2004 Hello,
I would like to load automatically a module at boot time on Fedora Core 2, but before the scripts start, so I don't want to put the module name in the file /etc/rc.local.
Does anyone know how to do?
Thanks
In Debian I do that by adding the module's name to /etc/modules. May be you have the same file in FC2.
Hope this helps.
Last edited by OneManArmy; 09-23-2004 at 09:54 AM.
I explain my problem. I want to start my daemon modem driver "slmodemd" at boot time with a script in /etc/rc.d/initd/. To start this driver (slmodemd), the module "slamr" must be loaded.
I currently tried to insert a new line with "slamr" only in the /etc/modprobe.conf file, but it does not work... What is the appropriate syntax to write in "modprobe.conf"?
With the kernel recompilation, how can I concretely insert a new module to be loaded at boot time?
does that module come with the kernel? If it does, you can choose to hard compile it into the kernel instead of as a kernel.
It probably won't work with modprobe.conf since what it controls is what happens when you load a module, but doesn't really control when a module gets loaded in the first place.
You can change the script in /etc/init.d to load the module for you before doing anything else. You just have to insert the line
modprobe slamr
in the appropriate place of the script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.