Skip to content

Instantly share code, notes, and snippets.

@cozzbie
Created April 26, 2019 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cozzbie/ac92157887643c56af59d8c5a1e53671 to your computer and use it in GitHub Desktop.
Save cozzbie/ac92157887643c56af59d8c5a1e53671 to your computer and use it in GitHub Desktop.
# recovery.cmdline
silentinstall
# /os/Raspbian/partition_setup.sh
# Enable SSH
echo 'ssh' >/tmp/1/ssh
# Configure WiFi
echo 'ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev' >> /tmp/1/wpa_supplicant.conf
echo 'update_config=1' >> /tmp/1/wpa_supplicant.conf
echo 'country=<TWO_LETTER_ISO_COUNTRY_CODE>' >> /tmp/1/wpa_supplicant.conf
echo '' >> /tmp/1/wpa_supplicant.conf
echo 'network={' >> /tmp/1/wpa_supplicant.conf
echo ' ssid="<WIFI_NETWORK_NAME>"' >> /tmp/1/wpa_supplicant.conf
echo ' psk="<WIFI_PASSWORD>"' >> /tmp/1/wpa_supplicant.conf
echo ' key_mgmt=WPA-PSK' >> /tmp/1/wpa_supplicant.conf
echo '}' >> /tmp/1/wpa_supplicant.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment