LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   slackware 10 startup/hotplug ndiswrapper/acx100 driver (https://www.linuxquestions.org/questions/linux-wireless-networking-41/slackware-10-startup-hotplug-ndiswrapper-acx100-driver-227155/)

jacksmernov 09-05-2004 11:46 PM

slackware 10 startup/hotplug ndiswrapper/acx100 driver
 
I've tried two solutions for my wireless dlink dwl 650+ on slackware 10

ndiswrapper and the acx1xx driver at acx100.sourceforge.net

I have gotten them both to work at install. But I can't get ndiswrapper to work at startup. I can get acx1xx to work at startup. But it still dosn't work when i replug in the card.

for acx1xx i use the start_net script that comes with the driver. I reference it in /etc/rc.d/rc.local

for ndiswrapper I had a script that went something like this

Code:

#/bin/sh

modprobe ndiswrapper
iwconfig wlan0 essid xxxxx
ifconfig wlan0 up
dhcpcd wlan0

I reference this script in /etc/rc.d/rc.local

When the script runs iwconfig and ifconfig complain that they can't find wlan0. The odd thing is that if i run this script a second time it works. It's as if it runs modprobe ndiswrapper in the background while it exicutes iwconfig and ifconfig. So that they run before modprobe has a chance to finish.

So what I'd like to know is how to get ndiswrapper working at startup and how to get either one of them hotplugable

PS... No i'm not trying to run both of these at once

quatsch 09-06-2004 01:14 AM

I get a device called /dev/ndiswrapper once ndiswrapper is loaded. If you get the same thing (I'm using udev and not devfs but I don't think it makes a difference), you could change the script a bit to wait for /dev/ndiswrapper to appear. Something like:

modprobe ndiswrapper
while [ ! -c -/dev/ndiswrapper ]; do /bin/true; done
iwconfig ...

kersten78 09-06-2004 05:33 PM

jacksmernov, I was having the exact same problem. For some reason modprobe ndiswrapper takes a few seconds to activate everything. I created this script /etc/rc.d/rc.wlan0
Code:

#!/bin/sh
#rc.wlan0
modprobe ndiswrapper
sleep 6
ndiswrapper -l
iwconfig wlan0 key open mykeyxxxxx
iwconfig wlan0 essid myessid
ifconfig wlan0 up
dhcpcd -t 10 -d wlan0

For some reason adding the sleep 6 command gives it enough time to activate ndiswrapper. Note also that the line ndiswrapper -l isn't necessary, I just like to see that the driver is loaded...I guess it was just a troubleshooting thing at first. Since you already have the script executable and added to your rc.local file, adding the sleep 6 line should solve your problem. Good luck and let us know if it works.
-Kris

jacksmernov 09-06-2004 11:14 PM

Putting in a while loops worked for ndiswrapper. But it still dosn't work after unpluging and repluging in. How do i get it to be hot swapable?


All times are GMT -5. The time now is 11:47 AM.