So I take it you have installed NDISWrapper, here is the script I use to bring up my wireless card on bootup:
Code:
#!/bin/bash
iwconfig wlan0 mode managed
iwconfig wlan0 key restricted (enter wep key)
iwconfig wlan0 essid (essid broadcast from router)
Once you have this written make it executable by chmod 755 nameof script
Now under /etc/rc.d/rc5.d if you use a graphical bootup or /etc/rc.d/rc3.d if you don't use graphical login screen make a symbolic link to your script
ln -s /path/to/script SxxWireless where xx is a number after your pcmcia and network scripts have run, pick a spot where the Sxx isn't a copy of any of the other Sxx to any other service.
Now you will need to download dhcpcd from here
http://www.phystech.com/download/dhcpcd.html links are near bottom of page, then you will have to untar the file, then, ./configure,make,make install. Once this is done issue the command
whereis dhcpcd make note of where the file is, in my case it was /usr/local/sbin/dhcpcd, take note of this.
Now fire up your favorite editor and edit
/etc/rc.d/rc.local adding this to the end
Code:
/usr/local/sbin/dhcpcd wlan0
.
Now you can either reboot your PC and the network card will be brought up and pull down an ip address, then you will be able to get e-mail or surf the net.
If you don't want to reboot just run the following commands and your wireless will be brought up, as root
Code:
/path/to/script
/usr/local/sbin/dhcpcd wlan0
Or just dhcpcd wlan0 if the dhcpcd program is in your path
HTH