X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=scripts%2Fburn-imgs.sh;h=a3b6fb2e7de73d3560ba3ed7bcb7a48d340958a7;hb=4c07511b60f32ff1205fe84071ee962ea656e59d;hp=8439a9b4252a80915597e17a0da54e4c439c4985;hpb=d8f9460417bda64c8204c87b318b3432ad4a90a3;p=backups%2F.git diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index 8439a9b..a3b6fb2 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -4,6 +4,9 @@ PATH=$(dirname $0):/bin:/usr/bin . config.sh +# If the noburn file is there then don't burn. +[ -f "$burnlockfile" ] && exit 0 + # Discover disk images by looking for .img.md5sum files in $imagedir imgmd5=$(ls $imagedir/*.img.md5sum | head -n 1) @@ -41,6 +44,8 @@ fi # 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