LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Load Module on Startup (https://www.linuxquestions.org/questions/slackware-14/load-module-on-startup-591340/)

es0teric 10-12-2007 12:24 PM

Load Module on Startup
 
I'm using Slackware 12.0 and recently got ndiswrapper properly configured for my laptop's wireless. The only part I have left is getting the ndiswrapper module to automatically load on startup.

From other posts I've sifted through, I get the impression that this used to be done by editing /etc/modprobe.conf. However, it seems that has been deprecated and modules are now loaded by creating files inside /etc/modprobe.d/

I have a file named "ndiswrapper" inside /etc/modprobe.d

This file only contains one line, which reads "alias wlan0 ndiswrapper"

The ndiswrapper module does not load on startup. Do I need to add a modprobe command to this file or something?

Also, there are many more modules loaded than there are files inside of /etc/modprobe.d. Where are the other modules being loaded from? Is there another way I should be going about loading this module?

Any help is greatly appreciated.

BCarey 10-12-2007 12:52 PM

/etc/rc.d/rc.modules. Add lines like "/sbin/modprobe module_name".

Brian

lyke 10-21-2007 08:48 AM

you could also add that line to /etc/rc.d/rc.local if you would rather leave rc.modules alone

I can't remember exactly, but there may just be a line in rc.modules that you can uncomment. It should look something like:
#/sbin/modprobe ndiswrapper

so change it to:
/sbin/modprobe ndiswrapper


good luck

BCarey 10-21-2007 09:06 PM

Quote:

Originally Posted by lyke (Post 2931564)
you could also add that line to /etc/rc.d/rc.local if you would rather leave rc.modules alone

Yes and no. Depending on the module, you will get different behavior if you put it in rc.local rather than rc.modules. rc.modules loads early in the boot process while rc.local is run at the end. For the network card, it is good to have it up and running before, eg. rc.inet gets run.

Brian


All times are GMT -5. The time now is 06:24 AM.