#! /bin/sh . .config cd "$source_dir" || die "Cannot chdir to the source directory" mount "$1" || die "Cannot mount CD" echo Diffing `pwd` and "$1" diff -rq --speed-large-files . "$1" res=$? eject "$2" & exit $res