From 37b254a96adef5e0b35c1356e91a8376b1aee73a Mon Sep 17 00:00:00 2001 From: Alan Jack Pippin Date: Fri, 30 Dec 2005 08:54:38 -0700 Subject: [PATCH] Extra debug information added to md5sum check failure. Changed dd count= option to use env var. --- scripts/burn-imgs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1