Skip to content

Instantly share code, notes, and snippets.

@physiii
Last active October 12, 2017 14:20
Show Gist options
  • Save physiii/a19a1599fa7d0e1c3c0753424899ac0d to your computer and use it in GitHub Desktop.
Save physiii/a19a1599fa7d0e1c3c0753424899ac0d to your computer and use it in GitHub Desktop.
echo ==== $(date +%H:%M) ====
image_file="$1"
device="$2"
sudo dd bs=1M if=${image_file} | pv | sudo dd bs=1M of=$device
#play /home/physiii/sound.ogg
notify-send -u normal "Done writing image to drive"
echo ==== $(date +%H:%M) ====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment