I will join with the zero.
Edit: I had to boot the image on my PiB to install wpa_supplicant.
# nano /etc/wpa_supplicant.conf
DONE FROM SERIAL CONSOLE
# ifconfig wlan0 down
# pkill dnsmasq
# pkill hostapd
# pkill lighttpd
# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B -D wext
# dhcpcd
(ping 8.8.8.8) to test if you wish
***Do internet stuff***
# ifconfig wlan0 down
# pkill wpa_supplicant
# systemctl restart piratebox
***Back to AP Mode***
Edit: I had to boot the image on my PiB to install wpa_supplicant.
pacman -U wpa_supplicant
# nano /etc/wpa_supplicant.conf
network={ ssid="My SSID" psk="mypasskey" }
DONE FROM SERIAL CONSOLE
# ifconfig wlan0 down
# pkill dnsmasq
# pkill hostapd
# pkill lighttpd
# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B -D wext
# dhcpcd
(ping 8.8.8.8) to test if you wish
***Do internet stuff***
# ifconfig wlan0 down
# pkill wpa_supplicant
# systemctl restart piratebox
***Back to AP Mode***