#!/bin/sh
if [ "$#" -lt 2 ]; then
echo -e "Usage:\non-fly-record <CD-name> <What-to-record>"
exit 1
fi
Dev="/dev/sr0"
Mode="-sao"
bufs=`mkisofs -r -q -print-size $2`
mkisofs -V $1 -A $1 -r $2 | cdrecord -v -ignsize -overburn $Mode -eject $Dev tsize="$bufs"s -
echo "Checking"
eject -t $Dev
dd if=$Device of=/dev/null bs=1024
eject $Device