LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Automating Modprobe (http://www.linuxquestions.org/questions/linux-wireless-networking-41/automating-modprobe-277067/)

gauntalus 01-12-2005 06:32 PM

Automating Modprobe
 
Hey, I just got linux wireless workin on my Inspiron 5150, but I have one little problem. In order to get it working, I have to bring up a console, and run "modprobe ndiswrapper" each time I boot up. What do I need to do to automate this?

oscarrines 01-13-2005 02:55 AM

Following quote is Section 5 from the ndiswrapper installation guide
(http://ndiswrapper.sourceforge.net/w...p/Installation)

Quote:


5. Automate
Once everything works fine you can write the correct modprobe settings to load ndiswrapper automatically when wlan0 interface is used, by running

ndiswrapper -m

Note that this doesn't automatically load ndiswrapper module at boot time. If you want the module to be loaded automatically at boot time, you should configure your module setup, which depends on the distrbution. Most distributions will load all modules listed in /etc/modules at boot time. Mandrake 10.x uses /etc/modprobe.preload. For them, you can add a line

ndiswrapper

in /etc/modules.


gauntalus 01-13-2005 04:21 PM

I've already given that a try, but it hasn't been working... Wireless works fine when I activate it via "modprobe ndiswrapper" when logged in as root, however, I have to do this manually everytime i restart the machine. When I do "ndiswrapper -m", it gives me a message saying "Adding "alias wlan0 ndiswrapper" to /etc/modprobe.conf", however if I check this file, there is no such entry. Also, if I manually add the entry, upon reboot, the entry disappears. inside /etc/modules.d I have five files, 'aliases, alsa, i386, ndiswrapper, svgalib'. Help!

pragmatico 01-14-2005 09:22 AM

Quote:

Originally posted by gauntalus
When I do "ndiswrapper -m", it gives me a message saying "Adding "alias wlan0 ndiswrapper" to /etc/modprobe.conf", however if I check this file, there is no such entry. Also, if I manually add the entry, upon reboot, the entry disappears.
this is a common thing with distros. on debian what happens is that if you change those alias things, you have to *manually* run the command "update-modules". please check how gentoo do this, although it is probably a similar system. once you run that command the changes will be fixed. find that command.

gauntalus 01-14-2005 11:57 AM

Quote:

Originally posted by pragmatico
this is a common thing with distros. on debian what happens is that if you change those alias things, you have to *manually* run the command "update-modules". please check how gentoo do this, although it is probably a similar system. once you run that command the changes will be fixed. find that command.
Ok, yep you were right. For those with the same problem, I found the answer @ forums.gentoo.org, here's the post ID:
http://forums.gentoo.org/viewtopic.p...iswrapper+boot

**edit**
NOTE: When I did this it slowed down my boot sequence a LOT, so I removed it and just do it manually when I wanna use wireless now.


All times are GMT -5. The time now is 11:49 PM.