LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-12-2005, 06:12 PM   #1
WolfCub
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Debian
Posts: 175

Rep: Reputation: 30
How to make a module load on boot


How do I make a kernel module load on boot on Debian Sarge with kernel 2.6.11?
 
Old 05-12-2005, 06:14 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Add it to /etc/modules.

Cheers,

mj
 
Old 05-12-2005, 06:17 PM   #3
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
if your using kde go to your user folder /home/username then type

cd .kde

the .kde folder is hidden, when your in there, cd into Autostart "/home/USERNAME/.kde/Autostart/", and write a shell script in there.....for instance..


------------------------------------------

#!/bin/bash
modprobe orinoco

------------------------------------------

that should definitely work
 
Old 05-12-2005, 06:25 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
if your using kde go to your user folder /home/username then type

cd .kde

the .kde folder is hidden, when your in there, cd into Autostart "/home/USERNAME/.kde/Autostart/", and write a shell script in there.....for instance..
For kernel modules ? (Modprobe will work, but there isn't an option to ensure that it will be reinstalled at next boot, AFAIK...)

Cheers,

mj
 
Old 05-12-2005, 06:35 PM   #5
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
i load a module at boot via a shell script in my kde autostart folder, and have never once had a problem with it since the day i wrote it a few months ago
 
Old 05-12-2005, 06:46 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Fair enough

I guess the only time that this approach could cause problems, would be if you needed the module to activate something important (display driver, network card etc.) before X was loaded.

My personal preference is for the first method, but modification and freedom of choice are what Linux is about, after all.

Cheers,

mj
 
Old 05-12-2005, 06:49 PM   #7
WolfCub
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Debian
Posts: 175

Original Poster
Rep: Reputation: 30
Ok I got it to load via the editing /etc/modules method, thanks.
 
Old 05-13-2005, 11:17 AM   #8
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
Quote:
Originally posted by mjrich


Modification and freedom of choice are what Linux is about, after all.

Cheers,

mj

well put..
 
Old 05-13-2005, 12:46 PM   #9
acker
Member
 
Registered: Apr 2004
Location: Timisoara, Romania
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Quote:
Originally posted by fatrandy13
i load a module at boot via a shell script in my kde autostart folder, and have never once had a problem with it since the day i wrote it a few months ago
You login in X as root? Why? Or you set a setuid bit for the script?
Anyway i don't think modules should be loaded only when KDE, GNOME or whatever starts ... There may be situations, but... hmmm....

/etc/modules is the choice IMHO

acker
 
  


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
Module doesn't load at boot gburch Linux - Hardware 2 05-04-2004 06:40 PM
How can I make a module (such as agpgart) load at boot? JsTNXD Red Hat 1 01-29-2004 07:52 PM
load a module before another at boot-up? josejcs Linux - Newbie 1 11-05-2003 03:43 PM
Load module(s) at boot time LordChaos Linux - General 2 01-18-2003 03:28 PM
module won't load at boot joeey21 Linux - Networking 9 09-15-2001 11:36 PM


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