diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2007-07-21 22:40:13 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2007-07-21 22:40:13 +0000 |
commit | 6b8529a3d58e84e02fa5a6d9e13f8916f9c1dc48 (patch) | |
tree | 7cc128dffa20f2180413e66e317575d459c7c48b /media-tv/vdr-dvd-scripts/files | |
parent | new conf, with new parameter to make burn-speed configurabel (diff) | |
download | gentoo-2-6b8529a3d58e84e02fa5a6d9e13f8916f9c1dc48.tar.gz gentoo-2-6b8529a3d58e84e02fa5a6d9e13f8916f9c1dc48.tar.bz2 gentoo-2-6b8529a3d58e84e02fa5a6d9e13f8916f9c1dc48.zip |
new version includes parameter to set burn-speed
(Portage version: 2.1.2.9)
Diffstat (limited to 'media-tv/vdr-dvd-scripts/files')
3 files changed, 68 insertions, 0 deletions
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 <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" 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 --- /dev/null +++ b/media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.3 |