From 6b8529a3d58e84e02fa5a6d9e13f8916f9c1dc48 Mon Sep 17 00:00:00 2001 From: Jörg Bornkessel Date: Sat, 21 Jul 2007 22:40:13 +0000 Subject: new version includes parameter to set burn-speed (Portage version: 2.1.2.9) --- .../files/0.0.3/dvdchanger_readdvd.sh | 32 +++++++++++++++++++ .../files/0.0.3/dvdchanger_writedvd.sh | 36 ++++++++++++++++++++++ .../files/digest-vdr-dvd-scripts-0.0.3 | 0 3 files changed, 68 insertions(+) create mode 100644 media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_readdvd.sh create mode 100644 media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh create mode 100644 media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.3 (limited to 'media-tv/vdr-dvd-scripts/files') diff --git a/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_readdvd.sh b/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_readdvd.sh new file mode 100644 index 000000000000..50e1b358fa38 --- /dev/null +++ b/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_readdvd.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# dvdselect_readdvd.sh +# +# source: dvdselect-plugin +# +# an LinVDR angepasst, da LinVDR kein at-Kommando hat +# modified for LinVDR, because there is no at-command +# +# This script will by called by the vdr-plugin dvdselect to copy a DVD to +# the local drive. +# +# It gets the following parameters: +# +# $1 = directory for dvd's (see plugin configuration menu) +# $2 = name of dvd +# $3 = original dvd-device + +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 + +rm -f "$1/$2" + +svdrpsend.pl -d localhost "MESG DVD einlesen gestartet" +dd if="$3" of="$1/$2" +svdrpsend.pl -d localhost "MESG DVD $2 fertig" + 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 +# 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" diff --git a/media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.3 b/media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.3 new file mode 100644 index 000000000000..e69de29bb2d1 -- cgit v1.2.3-65-gdbad