LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to make a module load on boot (https://www.linuxquestions.org/questions/debian-26/how-to-make-a-module-load-on-boot-322901/)

WolfCub 05-12-2005 06:12 PM

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?

mjrich 05-12-2005 06:14 PM

Add it to /etc/modules.

Cheers,

mj

fatrandy13 05-12-2005 06:17 PM

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

mjrich 05-12-2005 06:25 PM

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

fatrandy13 05-12-2005 06:35 PM

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

mjrich 05-12-2005 06:46 PM

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

WolfCub 05-12-2005 06:49 PM

Ok I got it to load via the editing /etc/modules method, thanks.

fatrandy13 05-13-2005 11:17 AM

Quote:

Originally posted by mjrich


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

Cheers,

mj


well put..

acker 05-13-2005 12:46 PM

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


All times are GMT -5. The time now is 03:07 PM.