Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tcarreira/6fb84f37e7409b026faf37d45db5016b to your computer and use it in GitHub Desktop.
Save tcarreira/6fb84f37e7409b026faf37d45db5016b to your computer and use it in GitHub Desktop.
# Enable SSH
touch /tmp/1/ssh
# Configure WiFi
cat > /tmp/1/wpa_supplicant.conf <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<TWO_LETTER_ISO_COUNTRY_CODE>
network={
ssid="<WIFI_NETWORK_NAME>"
psk="<WIFI_PASSWORD>"
key_mgmt=WPA-PSK
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment