summaryrefslogtreecommitdiff
path: root/vdr/scripts/vdrreaddvd
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /vdr/scripts/vdrreaddvd
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'vdr/scripts/vdrreaddvd')
-rw-r--r--vdr/scripts/vdrreaddvd31
1 files changed, 31 insertions, 0 deletions
diff --git a/vdr/scripts/vdrreaddvd b/vdr/scripts/vdrreaddvd
new file mode 100644
index 0000000..ff1a84d
--- /dev/null
+++ b/vdr/scripts/vdrreaddvd
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# vdrreaddvd - x-vdr version
+#
+# This script will be called by the vdr-plugins dvdselect and dvdswitch to copy a DVD to the local drive.
+#
+# It gets the following parameters:
+#
+# dvdselect and dvdswitch
+# $1 = directory for dvd's (see plugin configuration menu)
+# $2 = name of dvd
+# $3 = original dvd-device
+# dvdswitch only
+# $4 = mountpoint - default is "(none)"
+# $5 = "IMAGE" or "DIR"
+
+# Load VDR configuration
+. /etc/default/vdr
+
+# vdr2root
+if [ $# -eq 3 ]; then
+ # dvdselect
+ echo "sudo $VDRSCRIPTDIR/vdr2root readdvd \"$1\" \"$2\" \"$3.iso\" (none) IMAGE" | at now
+elif [ $# -eq 5 ]; then
+ # dvdswitch
+ echo "sudo $VDRSCRIPTDIR/vdr2root readdvd \"$1\" \"$2\" \"$3\" \"$4\" \"$5\"" | at now
+else
+ exit 1
+fi
+
+exit 0