Skip to content

Conversation

@developius
Copy link

Automatically configures the SD card (/Volumes/boot & /dev/disk2 - check this for your machine)

@anonymuse
Copy link

shipit

touch /Volumes/boot/ssh
cp ./config.txt /Volumes/boot/config.txt
cp ./cmdline.txt /Volumes/boot/cmdline.txt
diskutil eject /dev/disk2
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo umount /Volumes/boot will probably work more generically. Could also do sudo sync just before as an extra precaution.

sleep 5

touch /Volumes/boot/ssh
cp ./config.txt /Volumes/boot/config.txt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config.txt can change, but the two lines probably won't. Maybe tee could be used to top the new lines into the end of the existing file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants