projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use 'noburn' file to prohibit burning
[backups/.git]
/
scripts
/
burn-imgs.sh
diff --git
a/scripts/burn-imgs.sh
b/scripts/burn-imgs.sh
index 8439a9b4252a80915597e17a0da54e4c439c4985..27f7ad201b06b7d0e9b689c43fd905886d22ca13 100755
(executable)
--- a/
scripts/burn-imgs.sh
+++ b/
scripts/burn-imgs.sh
@@
-9,6
+9,9
@@
imgmd5=$(ls $imagedir/*.img.md5sum | head -n 1)
logfile=$(tempfile)
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
# If we didn't find an non-empty file then exit gracefully
[ -z "$imgmd5" ] && exit 0
[ -s "$imgmd5" ] || exit 0
@@
-41,6
+44,8
@@
fi
# Record the date in the stat file to indicate that this burn was a success
date >> $img.stat
# 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
{ # Send e-mail
echo "Image md5sum:"
cat $img.md5sum