X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fburn-imgs.sh;fp=scripts%2Fburn-imgs.sh;h=da5b11b911591dc15f2239bf663a8b5ae7dd96aa;hb=37b254a96adef5e0b35c1356e91a8376b1aee73a;hp=028b3c6e9667f44807fdf9a30168f486cae773ac;hpb=c92b2a057cef503a5d2fa29d0372ac3ed054e7a2;p=backups%2F.git diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index 028b3c6..da5b11b 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -52,11 +52,13 @@ sleep 60 # Now verify the disk by running md5sum on the entire contents of the disk md5sum=$(tempfile) -dd if=$dev bs=1M count=4440 2>>$logfile | md5sum | awk '{print$1}' > $md5sum +dd if=$dev bs=1M count=$imagesizemb 2>>$logfile | md5sum | awk '{print$1}' > $md5sum # Check that the md5sums match if ! cmp $md5sum $img.md5sum; then echo "md5sum check FAILED" >> $logfile + echo "dd if=$dev bs=1M count=$imagesizemb 2>>$logfile | md5sum | awk '{print\$1}' > $md5sum" >> $logfile + e2label $dev >> $logfile cat $logfile | grep -v "MB written" | grep -v "to quit" | mailx -s "DVD md5sum doesn't match image file!!!" $mailto exit 1 fi