Skip to content

Instantly share code, notes, and snippets.

@basiclines
Last active April 6, 2016 15:12
Show Gist options
  • Save basiclines/a38deb36635be049811dd560a663709e to your computer and use it in GitHub Desktop.
Save basiclines/a38deb36635be049811dd560a663709e to your computer and use it in GitHub Desktop.
Raspberry distros installer script
#!/bin/bash
diskutil list
# Grab your disk location, i'm using /disk2
diskutil unmountDisk /dev/disk2
sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024
sudo dd if=OpenELEC-RPi2.arm-6.0.3.img of=/dev/rdisk2 bs=4m
sync
diskutil unmountDisk /dev/disk2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment