I don’t know who originated the bash script called, but it’s great solution to common ndiswrapper problems. Thank you.

I expanded on it. With my version if I pass a parameter to the script, it will set the essid to the parameter that I passed. If I run the script without the parameter, it will bring up a less screen with the results of “iwlist eth1 scan”, and upon exit from less will request an essid. Often, I copy the essid from the less page and past it when I exit less. Either way , it will bring up the interface with the essid.

Here’s my
Note1: In myscript, I commented out “modprobe b44” because it wasn’t doing anything for me. You might need it.
Note2: My interface is eth1. Yours might be different.

ifdown eth1
modprobe -r b44
modprobe -r b43
modprobe -r b43legacy
modprobe -r ssb
modprobe -r ndiswrapper
modprobe ndiswrapper
# removed: modprobe b44
if [ -n “$1” ]; then
sudo iwconfig eth1 essid $1
iwlist eth1 scan | less
read -p essid: essid
sudo iwconfig eth1 essid $essid
ifup eth1

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.