#!/bin/bash

if [ -f /etc/ptt.d/pttdvd.conf ]; then
	. /etc/ptt.d/pttdvd.conf
else
	PTT_DVDDEV=/dev/dvd
fi

PTT_LABEL="$2"
if [ "x$PTT_LABEL" = "x" ]; then
	PTT_LABEL=`basename "$1"`;
fi
#growisofs -Z /dev/dvd -allow-lowercase -relaxed-filenames -allow-multidot -allow-leading-dots -joliet -joliet-long -allow-limited-size -rational-rock -disable-deep-relocation -full-iso9660-filenames -udf -verbose -V "$PTT_LABEL" "$1" && eject
growisofs -Z $PTT_DVDDEV -allow-lowercase -relaxed-filenames -allow-multidot -allow-leading-dots -allow-limited-size -rational-rock -disable-deep-relocation -full-iso9660-filenames -udf -verbose -V "$PTT_LABEL" "$1" && eject

