Click to See Complete Forum and Search --> : Running a modprobe on launch...


Devsforev
07-29-2003, 09:59 PM
Hey everyone! Just a quick question. I searched the forums on how to get a script launched when you start linux or X, but it has not helped me much. I have tried going into /etc/rc.local and /etc/rc.boot, but neither exist. I'm running Fluxbox under Debian. All I want to run when I start the machine is "modprobe ide-scsi" (to enable scsi emulation). Otherwise I have to open a command line and run that every time, and it gets annoying :-D. Thanks a lot!!

-- Devsforev

nouse66
07-29-2003, 10:10 PM
thats the job of your /etc/modules.autoload file
just put the modules names you want loaded in there and you're set.

windsorjax
07-29-2003, 10:11 PM
I am running Debian Stable AKA Woody with Kernel 2.4.21 and I found a file /etc/modules. Have a look in there and see if that does it. Good luck, Debian beat me like a stray dog the first few times I installed it.

Hayl
07-29-2003, 10:12 PM
put it in /etc/modules

OR

write a one-liner script and put it into whatever runlevel you want. the runlevel directories are under /etc/rcX.d

if you look in those directories, you will see that some of the scripts start with an S and some with a K. S scripts run at startup.

i suggest you read some of the documentation on the debian website for runlvels and init scripts.

Hayl
07-29-2003, 10:12 PM
Originally posted by nouse66
thats the job of your /etc/modules.autoload file
just put the modules names you want loaded in there and you're set.

no. modules.autoload = specific to Gentoo.

Darkbolt
07-29-2003, 10:26 PM
Originally posted by Devsforev
All I want to run when I start the machine is "modprobe ide-scsi" (to enable scsi emulation).


if you use lilo, it should automatically load if you put this line in /etc/lilo.conf

append="hdc=ide-scsi"

after you edit that, and save it, as root run

/sbin/lilo
:)

Devsforev
07-30-2003, 07:24 PM
Thanks everyone! While I did not find a modules.autoload file, I did find a modules file, however. After throwing a line in saying "ide-scsi" in it, scsi emulation ran on launch. Thanks again everyone!

-- Devsforev