From: Alan Jack Pippin Date: Fri, 30 Dec 2005 15:54:38 +0000 (-0700) Subject: Extra debug information added to md5sum check failure. Changed dd count= option to... X-Git-Tag: release-0.5~5 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%7Blink_activity%7D?a=commitdiff_plain;h=37b254a96adef5e0b35c1356e91a8376b1aee73a;p=backups%2F.git Extra debug information added to md5sum check failure. Changed dd count= option to use env var. --- 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