LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-29-2002, 03:23 AM   #1
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
loading modules at boot


Hi,
I'm trying to load a module at boot. I have seached this form for the awnser, but I found not thread to solve my problems.
The problem is that the files that people at talking about in those threads, arn't there on my system. I don't have a rc.d directory in /etc, I don't have a rc.local file and the file in /etc/rc.boot/boot.local doesn't seem to do any thing. How do I make a module load at boot? I know there is /etc/modules.conf file, but arn't only alliases defined in this file?
I did do "man rc.boot". It told me that the rc.boot directory is obselete, and that I should use the rcS.d directory instead. But putting my boot.local script in there did'nt help. In the readme file in that directory it says the files in /etc/rcS.d are all symbolic links to scripts that are executed at boot. But how do I make such a script?
I'm using debian woody.

Last edited by schatoor; 11-29-2002 at 03:30 AM.
 
Old 11-29-2002, 03:52 AM   #2
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Original Poster
Rep: Reputation: 45
There are some aditional questions. Whats the deal with runlevels in debian? I'm running X at the moment. Should'nt I be in runlevel 5 then? But wheni do "runlevel", it return's "N 2". How come ??
I'm asking this because the scripts in rcN.d (with N a number) at being run at the start of the respective run levels. Now I don't know where to put my start up script.
 
Old 11-29-2002, 04:16 AM   #3
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Original Poster
Rep: Reputation: 45
Ok, I got it fixed. Things are diverent now then it was when I was using suse.
Here is what I did.
Make a script myscript in init.d like :


#!/bin/bash
modproble mydriver


make it executable and run "update-rc.d myscript defaults". This will create symbolic links to the rcS.d directory. reboot and you will see your module being loaded.
Until now I'v been the only one replying to my own thread. But it is still important that people read this thread. I think the buissinus of loading modules has changed. I don't know I this is also true for other distro's then debian. If so, I would really like to know. Also, if I did something wrong or inefficient, pleace let me know. Other comments are more then welcome.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 03:39 PM
Loading modules at boot paddyjoy Linux - Newbie 2 06-27-2005 09:23 PM
Loading kernel modules during boot. alexeyak Fedora 4 12-20-2004 09:04 AM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM
Loading kernel modules at boot burk Linux - General 7 06-10-2002 07:28 AM


All times are GMT -5. The time now is 11:41 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