Here is the code of the script that works for me. This has work twice for me. However, on the second reboot, it failed. I need a break, back to shoveling snow and hauling in wood for the stove. There was an error in setting the encryption mode. Nothing like digging out the wood pile under 15 centimeters of snow in 0 degree centigrade to clear the mind . The code below has been corrected for WPA2 and AES
Code: Select all
#!/bin/sh
## modify this script to include your wifi interface name (instead of "wlan0")
echo "Configuring Wireless LAN with WPA2"
## echo "Loading RT73 Driver"
## load your driver, not needed Puppy loads at startup
## modprobe rt73
## bring up the wireless interface, unconfigured
echo
echo "Starting up wlan0"
ifconfig wlan0 up
echo " "
echo "Configuring wlan0"
iwconfig wlan0 mode managed
iwpriv wlan0 set AuthMode=WPA2PSK
iwpriv wlan0 set EncrypType=AES
iwconfig wlan0 essid link_id
iwpriv wlan0 set WPAPSK="acsi password" #" " are needed
sleep 10
echo " "
echo "Running dhcpcd address service"
## for automatic IP
## first remove stale existings dhcpcd files if exists
# for puppy 2.17 frugal use if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
# for puppy 3.00 full use if [ -e /etc/dhcpc/*.pid ]; then rm /etc/dhcpc/*.pid; fi
# and rm /etc/dhcpc/dhcpcd-*.*
## for puppy Dingo frugal
if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
dhcpcd -t 30 -h puppypc -d wlan0
sleep 10 # to see any error messages
## or for static IP
## modify /etc/resolv.conf to include your nameservers
#ifconfig wlan0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0
#route add default gw 192.168.0.1 wlan0 # or whatever your router's IP is
Additionally, I have the iwpriv usage text file for the RT73. If there is an interest to see it, send a private message to me and I will post it to the wireless hardware section.