LinuxQuestions.org

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

gauntalus 01-12-2005 05: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 01: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 03: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 08: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 10: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:11 AM.