Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: persistant wireless, ndiswrapper in DSL 4.2< Next Oldest | Next Newest >
geomort Offline





Group: Members
Posts: 14
Joined: Feb. 2007
Posted: Jan. 18 2008,00:48 QUOTE

I can get my wireless card running fairly easily with ndiswrapper in 4.2.  The 128 bit wep works too.
However, getting it to work without a line by line configuration has illuded me.
I have pasted the lines of my /opt/bootlocal.sh one at a time into a user terminal and they work just fine and load the wlan adaptor with ndiswrapper.

But if I try and automate the configuration with a script it fails.

Maybe I need a delay, or pause after the "sudo ndiswrapper -i /mnt/hda2/bcmwl5.inf" line.  Don't know how to do that maybe "sleep 5" or such?

Here is a close copy of my /opt/bootlocal.sh
have I made a syntax error?

#!/bin/bash
# file to configure DSL with ndiswrapper

sudo mount /dev/hda2 /mnt/hda2

sudo ndiswrapper -i /mnt/hda2/bcmwl5.inf

sudo modprobe ndiswrapper

sudo umount /mnt/hda2

sudo iwconfig wlan0 essid mynetwork

sudo iwconfig wlan0 key open "my128bitasciwepkey"

sudo ifconfig wlan0 up

sudo pump -i wlan0

sudo iwconfig

I'm out of ideas to make this work.

Thanks
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Jan. 18 2008,01:42 QUOTE

You need a delay between the  modprobe and iwconfig commands (you can put those all on one line) so the module has time to load; you might also add one after the ndiswrapper -i command. The script called by the ndiswrapper GUI has a sleep 5, which has been adequate for me.
(/usr/local/bin/ndiswrapper.sh)
Code Sample
#!/bin/bash
ndiswrapper -i "$1"
modprobe ndiswrapper
sleep 5
iwconfig "$2" essid "$3"
if [ -n "$4" ]; then
  iwconfig "$2" enc "$4"
fi
pump -i "$2"


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 18 2008,04:02 QUOTE

You can call the ndiswrapper script with one line in bootlocal.sh using the form "ndiswrapper.sh /path-to-file/*.inf essid wep"
Back to top
Profile PM 
geomort Offline





Group: Members
Posts: 14
Joined: Feb. 2007
Posted: Jan. 18 2008,20:43 QUOTE

Thanks, for the help.  It was the delay I needed.  Inserting sleep 5 after ndiswrapper -i and after modprobe ndiswrapper did the trick.  My wireless card comes up with each boot.  Had trouble trying to use the canned myndis script.  Maybe I needed to mount hda2 or had the true path wrong or forgot sudo. The Broadcom Chip cards are all working on boot up.  I'll work on the Atheros chip cards next and then the Zydas.  Loading a kernel module should be interesting.
Back to top
Profile PM 
stevesr0 Offline





Group: Members
Posts: 32
Joined: July 2007
Posted: June 12 2008,01:03 QUOTE

Does this work with a live CD using backup or only with an install?

Steve
Back to top
Profile PM 
6 replies since Jan. 18 2008,00:48 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: persistant wireless

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code