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