#!/bin/sh echo "Configuring Wireless LAN Card" echo ## load the driver modprobe ath_pci ## this will create a device, wifi0 /usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta ## this will create a network interface, ath0 ## can check this by running ifconfig -a ## now set up the wireless network iwconfig ath0 essid MY_ESSID key 1234567890 mode managed ## for automatic IP dhcpcd -t 20 -h puppypc -d ath0 ## or for static IP ## modify /etc/resolv.conf to include your nameservers #ifconfig ath0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0 #route add default gw 192.168.0.1 ath0 # or whatever your router's IP is