Wifi
In /etc/hostname.if0:
nwid ACCESSPOINTNAME wpakey 1234567890
dhcp
For multiple access points, you should instead use:
join ACCESSPOINTNAME wpakey 1234567890
dhcp
Replace ACCESSPOINTNAME with the real name and replace 1234567890 with the password.