LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   How to get wireless card (WPC11) to run @ startup (https://www.linuxquestions.org/questions/linux-wireless-networking-41/how-to-get-wireless-card-wpc11-to-run-%40-startup-100940/)

jamescov 10-06-2003 04:10 PM

How to get wireless card (WPC11) to run @ startup
 
Hello everyone,

After two days I got my WPC11 card working and also got the wlan up and wlandown working. Now I need to know how make wlanup run at system startup and wlandown run at system shutdown. Manythanks for any help

akaBeaVis 10-06-2003 06:15 PM

For startup you could add the command to /etc/rc.d/rc.local at the end. For shutdown, I wouldn't worry about it, the system kills all the processes before shutdown anyway.

jamescov 10-06-2003 09:07 PM

I figured out how to do it but I have a problem. When I setup a file to run automatically, is there a way to put the root password in the file so that I'm not prompted for it?

Cimmerian 10-07-2003 01:56 AM

That nice wpc11 card actually freezes my machine if I try to shutdown without disabling the interface first. Sucky driver, wish I bought a different card... Well, hopefully it will evolve into something wonderful some day ;)

Btw, you should all put in your info what distro you use, so it's easier to answer questions and you don't have to write it or be asked every time. Because the init scripts work somewhat differently for different distros, though I believe most support sysvinit today.

If you do it in the init scripts, they are run as root, so you shouldn't be asked for anything.

jamescov 10-07-2003 04:19 AM

WPC11 startup/shutdown issue resolved!
 
Hi everyone:

From reading this forum I have noticed that many people including myself, have had problems with the WPC11 card. From what i've read, everyone says you can't shutdown the computer without dsabling the card frist. This is true. What I figured is how to disable the driver during shutdown before the system has a chance freeze. I have only tested this with SUSE 8.2. If you make the following modacations to the file:/etc/init.d/pcmcia, it should resolve this issue.

1. Put the following below "### END INIT INFO"

#Disable wireless lan driver
/sbin/iwpriv wlan0 disable

#Shut down wlan0 net interface
cd /sbin/
./ifconfig wlan0 down
cd /var/run
rm dhcpcd-wlan0.pid

#Unload module
rmmod rtl8180_24x


Now put the following after "esac".


#Load module
cd /sbin
./insmod -f rtl8180_24x.o

#Set SSID
/sbin/iwpriv wlan0 wlan_para ssid2scan=(put network id here)
/sbin/iwpriv wlan0 wlan_para networktype=infra
/sbin/iwpriv wlan0 wlan_para encmode=wep
/sbin/iwpriv wlan0 wlan_para authtype=sharedkey
/sbin/iwpriv wlan0 wlan_para wepmode=wep40
/sbin/wlan/iwpriv wlan0 wlan_para wepdkeyid=0
/sbin/wlan/iwpriv wlan0 wlan_para wepkey40_1=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_2=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_3=(put key here)
/sbin/iwpriv wlan0 wlan_para wepkey40_4=(put key here)




#Enable wireless lan driver
/sbin/wlan/iwpriv wlan0 enable


#Configure wlan0 IP address
/sbin/dhcpcd wlan0

rc_exit

akaBeaVis 10-07-2003 06:00 PM

excellent info.


All times are GMT -5. The time now is 11:51 PM.