you can make a shell script to do this all for you
if this doesnt help, then this is over my head
save this as /doit.sh or something
Code:
export PATH=$PATH:/sbin:/usr/sbin
iwconfig wlan0 mode Managed
iwconfig wlan0 essid 'YOURESSIDHERE'
ifconfig wlan0 192.168.0.115
route add default gw 192.168.0.1
this is assuming your defaut gateway will be 0.1 and ur ip will be static. If you want to do it via dhcp, replace the last 2 lines from above with
run /doit.sh to start your interface by going:
how simple is that?