diff options
Diffstat (limited to 'media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh')
-rw-r--r-- | media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh b/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh new file mode 100644 index 000000000000..a7337cedd853 --- /dev/null +++ b/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# +# $Header: /var/cvsroot/gentoo-x86/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh,v 1.1 2007/07/21 22:40:13 hd_brummy Exp $ +# +# 04 Mar 2006; Joerg Bornkessel <hd_brummy@gentoo.org> +# addaptded to gentoo-vdr-scripts + +if [[ -z ${EXECUTED_BY_VDR_BG} ]]; then + VDR_BG=/usr/share/vdr/bin/vdr-bg.sh + [[ -e ${VDR_BG} ]] || VDR_BG=/usr/lib/vdr/bin/vdr-bg.sh + + exec "${VDR_BG}" "${0}" "${@}" + exit +fi + +[[ -e /etc/conf.d/vdr.cd-dvd ]] && source /etc/conf.d/vdr.cd-dvd + +ISO_FILE="${1// IMAGE/}" + +#logger -t burnscript burn ${ISO_FILE} -- + +: ${VDR_DVDWRITER:=/dev/dvd} + +[[ -e /etc/conf.d/vdr.dvdswitch ]] && source /etc/conf.d/vdr.dvdswitch +: ${DVDSWITCH_BURNSPEED:=0} + + +DVD_RECORDCMD="growisofs" +DVDPLUS_RECORD_OPTS="-use-the-force-luke=tty -speed=$DVDSWITCH_BURNSPEED -dvd-compat -Z" + + +unset SUDO_COMMAND + +svdrpsend.pl -d localhost "MESG DVD burn initiated" +"$DVD_RECORDCMD" $DVDPLUS_RECORD_OPTS "$VDR_DVDWRITER"="${ISO_FILE}" +svdrpsend.pl -d localhost "MESG DVD burn completed" |