#!/bin/sh echo "Configuring Wireless LAN Card" echo ## load the driver modprobe rt2400 # or rt2500 or rt2570 or rt61 or rt73 ## if no error messages, this should create a network interface, ra0 (or rausb0 for rt2570/rt73) ## can check this by running ifconfig -a ifconfig ra0 up #(sometimes necessary) ## now set up the wireless network ## FOR WEP ENCRYPTION (or no encryption) iwconfig ra0 essid MY_ESSID key 1234567890 mode managed ## OR FOR WPA ENCRYPTION ... iwconfig should not be needed iwpriv ra0 set NetworkType=Infra ## or some users report iwconfig is necessary for mode #iwconfig ra0 mode managed iwpriv ra0 set AuthMode=WPAPSK iwpriv ra0 set EncrypType=TKIP iwpriv ra0 set WPAPSK="MY_SECRET_PASSPHRASE" iwpriv ra0 set SSID=MY_ESSID ## some users report iwconfig is necessary for essid #iwconfig ra0 essid MY_ESSID ## for automatic IP ## first remove stale dhcpcd file if it exists if [ -e /etc/dhcpc/*.pid ]; then rm /etc/dhcpc/*.pid; fi dhcpcd -t 30 -h puppypc -d ra0 ## or for static IP ## modify /etc/resolv.conf to include your nameservers #ifconfig ra0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0 #route add default gw 192.168.0.1 ra0 # or whatever your router's IP is