From 86a5682394e1e43a7a952816dc68e110c71314dc Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Thu, 27 Oct 2005 22:05:15 -0600 Subject: [PATCH] Cleanup pack script and mail user in burn script --- scripts/burn-imgs.sh | 2 ++ scripts/pack-image.sh | 19 ------------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index 1f38f7c..fd8dd2c 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -29,3 +29,5 @@ if [ -n "$img" ]; then rmdir $img.mnt fi fi + +echo $img | mailx -s "DVD burned. File it as ${img%.*}" $mailto diff --git a/scripts/pack-image.sh b/scripts/pack-image.sh index 9d1e5b2..918ac43 100755 --- a/scripts/pack-image.sh +++ b/scripts/pack-image.sh @@ -58,22 +58,3 @@ echo "Calculating md5sum for image" md5sum $isoimage | awk '{print$1}' > $isoimage.md5sum cat $statusfile | mailx -s "DVD image available to burn - $today" $mailto - -exit 0 - -# Burn the iso image -echo "Burn the image to a DVD" -if cdrecord-wrapper.sh -dao speed=8 dev=ATA:1,0,0 $isoimage; then - md5sum_file=$(tempfile) - dd if=/dev/hdc bs=1M count=4440 | md5sum | awk '{print$1}' > $md5sum_file - if ! cmp $md5sum_file $isoimage.md5sum; then - echo "Failed" | mailx -s "DVD md5sum doesn't match image file!!!" $mailto - exit 1 - fi -else - echo "Failed" | mailx -s "DVD burning failed!!!" $mailto - exit 1 -fi - -# Email me -cat $statusfile | mailx -s "DVD burned. File it as $today" $mailto -- 2.34.1