Skip to content

Instantly share code, notes, and snippets.

@mostlyfine
Created August 1, 2016 06:40
Show Gist options
  • Save mostlyfine/5e88692a2a0ed7565985a67e9d9201e6 to your computer and use it in GitHub Desktop.
Save mostlyfine/5e88692a2a0ed7565985a67e9d9201e6 to your computer and use it in GitHub Desktop.
#!/bin/sh
DISK=/dev/disk2
IMG=2016-05-27-raspbian-jessie.img
diskutil list | grep $DISK
diskutil eraseDisk FAT32 RPI $DISK
diskutil unmountDisk $DISK
sudo dd bs=1024m if=$IMG of=$DISK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment