Skip to content

Instantly share code, notes, and snippets.

@kjlape
Last active March 25, 2018 19:16
Show Gist options
  • Select an option

  • Save kjlape/29ad8782677cbc3ee9ee2fcfc85db98e to your computer and use it in GitHub Desktop.

Select an option

Save kjlape/29ad8782677cbc3ee9ee2fcfc85db98e to your computer and use it in GitHub Desktop.
# navigate to the boot partition
# set WPA_SSID and WPA_PSK
touch ssh
cat > wpa_supplicant.conf <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="$WPA_SSID"
psk="$WPA_PSK"
key_mgmt=WPA-PSK
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment