LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   rc.local problems (https://www.linuxquestions.org/questions/slackware-14/rc-local-problems-225199/)

zehas 09-01-2004 05:55 AM

dwl 650 config problem
 
I'm using a dlink dwl-650 for my network access.
in rc.local i added these lines

modprobe ndiswrapper
sleep 10
iwconfig wlan0 mode Managed
iwconfig wlan0 essid "linksys"
iwconfig wlan0 channel 6
ifconfig wlan0 up
ifconfig wlan0 192.168.0.109 netmask 255.255.255.0
route add default gw 192.168.0.1 wlan0
dhcpcd wlan0

the system hangs real bad, to the point where there will be 15 second delays before charecters appear that i typed.
if i enter all the commands by hand as sooon as the essid line is entered everything goes back to normal. Fairly new to all this but hope somebody has an idea. thanks guys

egag 09-01-2004 11:37 AM

maybe better open a new thread , and put the Q. something like :

" dlink dwl650 network install "

this is not a ' rc.local prob. '

egag

tank728 09-01-2004 12:12 PM

Why do you have sleep 10, what does that do, I have never used it? Also you are been very redundant with trying to assign an ip address twice to wlan0. Choose how you have to assign you ip staticlly or dynamically (dhcpcd). I would recommend dhcp, but if you want it to be static for a server, then you need to add the broadcast option to you command, it should look like this:
Code:

ifconfig wlan0 192.168.1.109 netmast 255.255.255.0 broadcast 192.168.1.255
Also you do not have to set the mode, or channel. I am not on my laptop right now, so I can not double check this, but I believe you need to do ifconfig wlan0 up right after you load your ndiswrapper module. I know that you get an error when you type iwlist wlan0 scanning, when wlan0 is down. Try something like this:
Code:

/sbin/modprobe ndiswrapper
/sbin/ifconfig wlan0 up
/sbin/iwconfig wlan0 essid "linksys"
#/sbin/iwconfig wlan0 key <wep key goes here>
/sbin/dhcpcd wlan0

If you have wep enable, then you need to put in your wep key in the line I designated for you. Obviously /sbin/iwconfig wlan0 key <wep> is optional. Also check that you ssid on your router is linksys and not Linksys, remember Linux is case sensitive. Good Luck.

-tank

zehas 09-01-2004 02:05 PM

tried those changes, worked once and on reboot went back to the hanging. only thing we can come up with is modprobe is crapping out with the dwl-650 xp driver.

tank728 09-01-2004 02:40 PM

I would try out a different driver for that card. I am assuming that you are using slack 10. In the extras directory there is a package for the linux-wlan-ng drivers for both 2.4.26 and 2.6.7 kernels. Maybe try the hostap drivers. Use the search feature and check the Wireless forum, for your card, and see if anyone else has had any success with that card, I am sure some has.

Also what does "sleep 10" do?

-tank

gbonvehi 09-01-2004 02:49 PM

sleep 10 waits 10 seconds, i assume it's just in case the driver takes some time to load

tank728 09-01-2004 04:16 PM

Thanks for the info, but I have another question. When /sbin/modprobe ndiswrapper gets executed shouldn't it finish loading, and then the next line get executed, therefore make sleep 10 uncalled for?

-tank


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