logfile=$(tempfile)
+# If the noburn file is there then don't burn.
+[ -f "$burnlockfile" ] && exit 0
+
# If we didn't find an non-empty file then exit gracefully
[ -z "$imgmd5" ] && exit 0
[ -s "$imgmd5" ] || exit 0
# Record the date in the stat file to indicate that this burn was a success
date >> $img.stat
+touch $burnlockfile
+
{ # Send e-mail
echo "Image md5sum:"
cat $img.md5sum