You can initialize your Raspberry PI wireless connection automatically at boot time if the instructions given in a previous post entitled How To Setup A Protected Wireless Connection Via The Command-Line worked. This is pretty straight forward. You must be root to carry out these instructions.

Save the wpa.conf file created in the previous post somewhere on the SD card you use to boot the system. For example in /root/bin/wpa.conf.

Create the following script and save it in a file called /root/bin/initWiFi for example

#!/bin/bash

/sbin/wpa_supplicant -Dwext -iwlan0 -cwpa.conf -B
/sbin/dhclient wlan0

Protect the files

chmod 700 /root/bin/initWiFi
chmod 600 /root/bin/wpa.conf

Add to the file /etc/rc.local before the last exit statement the following line

bash /root/bin/initWiFi