#!/bin/bash # Script to write DVDs. Requires users to be in /etc/sudoers # as allowed to run dvdrecord. 4/4/03, kmisselt. sudo="/usr/bin/sudo" dvdrecord="/usr/bin/dvdrecord" device="0,1,0" if test -z "$1" ; then echo "Usage: $0 " echo "where is the top level of the data to be written" exit 1 fi if [ -d "$1" ] ; then echo "Writing the DVD" mkisofs -R ./$1 | $sudo $dvdrecord -v -dao dev=$device - else echo "$1 is not a directory." fi exit 0