#!/bin/rc # compare CD against its iso image in $home/cd.iso # Tue May 17 08:10:40 MET 2005 Peter A. Cejchan rfork e kill cdfs | rc cdfs -d /dev/sdD0 #if (! cmp `{sum cd.iso} `{sum /mnt/cd/d000}) echo BURNING ERROR sha1sum < cd.iso > /tmp/foo1 sha1sum < /mnt/cd/d000 > /tmp/foo2 if (! cmp /tmp/foo1 /tmp/foo2) echo BURNING ERROR cat /tmp/foo1 cat /tmp/foo2 rm -fr /tmp/foo1 /tmp/foo2 # -eof-