LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Where is my init.d? (https://www.linuxquestions.org/questions/slackware-14/where-is-my-init-d-489270/)

oneminizut 10-04-2006 02:42 AM

Where is my init.d?
 
Probably a very simple question, but I recently installed Slack 11 and am running 2.6.18 kernel. Everything is working fine or I am getting it there. My only real problem so far is that when adding the new kernel I used the .tgz package so I didn't get to opt for loading my acpi modules. No problem, did that later with insmod. Now to try to get the changes to stick I tried update-modules and I get the response
"command not found" so simple enough, it doesn't exist, but where do I find it? Also I wanted to add some power saving scripts to /etc/init.d
and it's not there. I know I fouled up somewhere but damned if I can figure it out.

vharishankar 10-04-2006 02:46 AM

In slackware you have the rc.d folder. There's no init.d folder. It uses BSD style init scripts.

Alien Bob 10-04-2006 03:10 AM

Try adding "/sbin/modprobe" commands for your modules to the file /etc/rc.d/rc.modules
The command "update-modules" is something of Debian I think.

Eric

oneminizut 10-04-2006 04:38 PM

Quote:

Originally Posted by Alien Bob
Try adding "/sbin/modprobe" commands for your modules to the file /etc/rc.d/rc.modules
The command "update-modules" is something of Debian I think.

Eric

Ok, thanks for pointing that out. Now I want to load the modules like processor.ko, fan.ko, battery.ko. The rc.modules file states that it will look for them under /lib/modules/<version> But they are actually located in /lib/modules/<ver>/kernel/drivers/acpi

Do I assume that it will look that deeply into the directory?

Also, when I edit rc.modules would I include the .ko extension or no?

Like this maybe

### ACPI Power blah blah ###
/sbin/modprobe processor.ko

or

/sbin/modprobe processor

Any help I appreciate.

Alien Bob 10-04-2006 04:41 PM

The module extension is not needed:
Code:

sbin/modprobe processor
Modprobe will know where to look.

Eric

oneminizut 10-04-2006 04:44 PM

Thanks, your the best!


All times are GMT -5. The time now is 04:37 AM.