Start Up script for wireless running with Ndiswrapper
Just wondering how I would go about creating a startup script to start my wireless card thats running with Ndiswapper 0.8. I also need to know how to set the wireless card up to get the IP address and gateway through dhcp. Im running Fedora 2 if anyone could help it would be great
Thanks |
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 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 HTH :) |
try this rather than a script.....
Quote:
|
But what name do you save file as ? .sh ???
thanks, |
All times are GMT -5. The time now is 12:32 PM. |