#!/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 -M /dev/dvd -allow-lowercase -relaxed-filenames -allow-multidot -allow-leading-dots -joliet -joliet-long -rational-rock -disable-deep-relocation -full-iso9660-filenames -verbose -V "$PTT_LABEL" "$1" && eject
growisofs -M $PTT_DVDDEV -allow-lowercase -relaxed-filenames -allow-multidot -allow-leading-dots -rational-rock -disable-deep-relocation -full-iso9660-filenames -verbose -V "$PTT_LABEL" "$1" && eject

