Last active
July 4, 2020 12:35
-
-
Save tchartron/e2a8bb02aa3909ad4b1589d72bf4f9ad to your computer and use it in GitHub Desktop.
Headless raspberry pi ssh + wifi from MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
touch /Volumes/boot/ssh | |
touch /Volumes/boot/wpa_supplicant.conf | |
echo 'country=FR | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="ssid" | |
psk="password" | |
} | |
' >> /Volumes/boot/wpa_supplicant.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment