projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c92b2a0
)
Extra debug information added to md5sum check failure. Changed dd count= option to...
author
Alan Jack Pippin
<ajp@pippin.(none)>
Fri, 30 Dec 2005 15:54:38 +0000
(08:54 -0700)
committer
Alan J. Pippin
<ajp@pippins.net>
Fri, 30 Dec 2005 15:54:38 +0000
(08:54 -0700)
scripts/burn-imgs.sh
patch
|
blob
|
history
diff --git
a/scripts/burn-imgs.sh
b/scripts/burn-imgs.sh
index 028b3c6e9667f44807fdf9a30168f486cae773ac..da5b11b911591dc15f2239bf663a8b5ae7dd96aa 100755
(executable)
--- 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)
# 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
# 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
cat $logfile | grep -v "MB written" | grep -v "to quit" | mailx -s "DVD md5sum doesn't match image file!!!" $mailto
exit 1
fi