#!/bin/sh echo "Configuring Wireless LAN Card" echo ## load the driver modprobe hostap_cs ## or hostap_pci or hostap_plx ## if no error messages, this should create a network interface, wlan0 ## can check this by running ifconfig -a ## some adaptors such as Prism3 SSF require firmware to be loaded ## this firmware should be located in /etc/firmware/ ## but don't do this with other adaptors #/usr/local/bin/hostap_fw_load wlan0 #ifconfig wlan0 up ## this seems to be necessary after firmware load ## now set up the wireless network iwconfig wlan0 essid MY_ESSID key 1234567890 mode managed ## for automatic IP dhcpcd -t 20 -h puppypc -d wlan0 ## 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