Skip to content

Instantly share code, notes, and snippets.

@physiii
Last active October 30, 2017 20:51
Show Gist options
  • Save physiii/f17f087ca49e3898fabd0430df0040bc to your computer and use it in GitHub Desktop.
Save physiii/f17f087ca49e3898fabd0430df0040bc to your computer and use it in GitHub Desktop.
echo ==== started $(date +%H:%M) ====
device="$1"
image_file=$(date +%m-%d-%y)-gateway.img
sudo dd bs=40M if=$device | pv | sudo dd bs=4M of=$image_file
notify-send -u critical "Made Image"
echo ==== finished $(date +%H:%M) ====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment