X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=scripts%2Fburn-imgs.sh;h=a180c4d494cac54a3f4cc6243780baba172318d5;hb=5b2e55bcb1d9c762ead7539af69fe41ae0e1a76e;hp=c128752ed9fe06ec58370c59dfc76b6b51346f3f;hpb=fc7ffa6e97d11a4ac6099b50182be3acfdb46a8e;p=backups%2F.git diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index c128752..a180c4d 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -23,11 +23,17 @@ if [ -n "$img" ]; then exit 1 fi + { + echo "Image md5sum:" + cat $img.md5sum + echo + echo "md5sum of burned disks:" + cat $img.stat + } | mailx -s "DVD burned. File it as ${img%.*}" $mailto + if [ "$(wc -l $img.stat 2>/dev/null)" == "2" ]; then echo "Burned the image twice. Removing it!" rm -f $img{,.md5sum,.stat} rmdir $img.mnt fi - - echo $img | mailx -s "DVD burned. File it as ${img%.*}" $mailto fi