Last active
August 12, 2016 13:34
-
-
Save danielo515/dbd1227a5a09a52c14c9e14405b2f2dd to your computer and use it in GitHub Desktop.
Flash an image on sd insertion
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
# 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