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-28-2004, 05:04 AM   #1
appas
Member
 
Registered: Jul 2004
Posts: 72

Rep: Reputation: 15
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.
 
Old 09-28-2004, 06:04 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
place your insmod command into your /etc/rc.d/rc.local file
 
Old 09-28-2004, 06:04 AM   #3
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
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.
 
Old 09-28-2004, 06:19 AM   #4
chrisss
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
wel that really depends on the distro you are using.

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

in debian check /etc/modutils/
 
Old 09-28-2004, 06:27 AM   #5
chrisss
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
i missed the RH8 part sorry

I think you should use /etc/modules.conf
 
Old 09-28-2004, 10:15 AM   #6
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Rep: Reputation: 0
what about in mandrake?
 
Old 09-29-2004, 03:43 AM   #7
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
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.
 
Old 09-29-2004, 06:04 AM   #8
gloriant
Member
 
Registered: Sep 2004
Distribution: Debian{Woody,Sarge,Etch}, UbuntuLTS6.06, SuSE{6.2,8.0}
Posts: 42

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


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 11:24 AM
ndiswrapper module takes an awfully long time to load xiang83 Linux - Hardware 0 02-12-2005 10:58 AM
How to load a module at boot time om Feodra 2? jp2004 Linux - Software 5 09-24-2004 07:30 AM
how to load a module at boot time trutnev Linux - Newbie 1 03-14-2004 12:54 PM
Load module(s) at boot time LordChaos Linux - General 2 01-18-2003 03:28 PM


All times are GMT -5. The time now is 07:24 AM.

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