summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-07-09 14:20:32 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-07-09 14:20:32 +0000
commita7d615e783c3ec93910b69535a979086b25c04dc (patch)
tree6bb69714b2f7bfb9fa6b73b15c64af5846470d51 /media-tv/vdr-dvd-scripts/files
parentUse depend.php to work out if we have xml support, #139627 (diff)
downloadhistorical-a7d615e783c3ec93910b69535a979086b25c04dc.tar.gz
historical-a7d615e783c3ec93910b69535a979086b25c04dc.tar.bz2
historical-a7d615e783c3ec93910b69535a979086b25c04dc.zip
Added version which is prepared for moving vdr-bg.sh to /usr/share/...
Package-Manager: portage-2.1.1_pre2-r6
Diffstat (limited to 'media-tv/vdr-dvd-scripts/files')
-rw-r--r--media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_readdvd.sh32
-rw-r--r--media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_writedvd.sh30
-rw-r--r--media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.21
3 files changed, 63 insertions, 0 deletions
diff --git a/media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_readdvd.sh b/media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_readdvd.sh
new file mode 100644
index 000000000000..50e1b358fa38
--- /dev/null
+++ b/media-tv/vdr-dvd-scripts/files/0.0.2/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.2/dvdchanger_writedvd.sh b/media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_writedvd.sh
new file mode 100644
index 000000000000..a84a2605ed61
--- /dev/null
+++ b/media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_writedvd.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $Header: /var/cvsroot/gentoo-x86/media-tv/vdr-dvd-scripts/files/0.0.2/dvdchanger_writedvd.sh,v 1.1 2006/07/09 14:20:32 zzam 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}
+
+DVD_RECORDCMD="growisofs"
+DVDPLUS_RECORD_OPTS="-use-the-force-luke=tty -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.2 b/media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.2
new file mode 100644
index 000000000000..8b137891791f
--- /dev/null
+++ b/media-tv/vdr-dvd-scripts/files/digest-vdr-dvd-scripts-0.0.2
@@ -0,0 +1 @@
+