#!/usr/bin/bash

# NOTE: if you have a different wireless interface instead of eth0, use that
ifconfig eth0 up

wpa_supplicant -c wireless.wpa -i eth0 &

# NOTE: if you need to use DHCP, comment out the IP and gateway lines and do "dhclient eth0" or somesuch
iwconfig eth0
ifconfig eth0 192.168.1.61/24
ifconfig eth0
route add default gw 192.168.1.1

sleep 5
ping -c 3 google.com

