LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 09-22-2004, 08:50 AM   #1
jp2004
LQ Newbie
 
Registered: Sep 2004
Location: France
Distribution: Fedora Core 2
Posts: 3

Rep: Reputation: 0
How to load a module at boot time om Feodra 2?


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
 
Old 09-22-2004, 08:30 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
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.
 
Old 09-23-2004, 07:22 AM   #3
textomat
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
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

/etc/modprobe.conf - think
 
Old 09-23-2004, 10:52 AM   #4
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
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 10:54 AM.
 
Old 09-24-2004, 06:47 AM   #5
jp2004
LQ Newbie
 
Registered: Sep 2004
Location: France
Distribution: Fedora Core 2
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your answers.

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?

Thank you for your help.
 
Old 09-24-2004, 08:30 AM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper module takes an awfully long time to load xiang83 Slackware 1 12-17-2005 12:24 PM
ndiswrapper module takes an awfully long time to load xiang83 Linux - Hardware 0 02-12-2005 11:58 AM
how to load a module at boot time appas Linux - Software 7 09-29-2004 07:04 AM
how to load a module at boot time trutnev Linux - Newbie 1 03-14-2004 01:54 PM
Load module(s) at boot time LordChaos Linux - General 2 01-18-2003 04:28 PM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration