Skip to content

Instantly share code, notes, and snippets.

@danielo515
Last active August 12, 2016 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielo515/dbd1227a5a09a52c14c9e14405b2f2dd to your computer and use it in GitHub Desktop.
Save danielo515/dbd1227a5a09a52c14c9e14405b2f2dd to your computer and use it in GitHub Desktop.
Flash an image on sd insertion
# place this at /etc/udev/rules.d/100-sdflash.rules
ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", NAME="MyCard" RUN+="/bin/dd bs=1M if=/path/to/image of=/dev/MyCard && echo Flash is complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment