Cleanup pack script and mail user in burn script
[backups/.git] / scripts / pack-image.sh
index 9d1e5b28fb79a194ee894ceb079e7f3490fffe8b..918ac43c81f777bb3b93b190a7a6d5912a9f9177 100755 (executable)
@@ -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