#!/bin/bash # # /usr/local/bin/burncd.sh # cat /usr/local/bin/burncd.sh echo "" echo " First argument is <$1>." echo "Second argument is <$2>." echo "" eject -t if [ -n $1 ] ; then if [ -n $2 ] ; then cdrecord -v dev=0,0,0 fs=64M speed=$2 driveropts=burnproof $1 else echo "Second argument is burn speed [1 - 52] and must not be null." fi else echo "" echo "First argument is filename.ext and must not be null." echo "" fi mount /mnt/cdrom && ls -l /mnt/cdrom && umount /mnt/cdrom echo $1 eject