From: Carl Baldwin Date: Fri, 28 Oct 2005 04:05:15 +0000 (-0600) Subject: Cleanup pack script and mail user in burn script X-Git-Tag: release-0.4~48 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=86a5682394e1e43a7a952816dc68e110c71314dc;p=backups%2F.git Cleanup pack script and mail user in burn script --- 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