summaryrefslogtreecommitdiff
path: root/scripts/vdrshutdown.sh
diff options
context:
space:
mode:
authorDaniel Meyerholt <dxm523@googlemail.com>2011-02-06 16:02:09 +0100
committerDaniel Meyerholt <dxm523@googlemail.com>2011-02-06 16:02:09 +0100
commita0674cc59c6aaad845ed0a48768fb56b90c41d52 (patch)
treebe828ed0f61ebe85db7f1098e8e8942126b3e7fc /scripts/vdrshutdown.sh
downloadvdr-plugin-vdrrip-a0674cc59c6aaad845ed0a48768fb56b90c41d52.tar.gz
vdr-plugin-vdrrip-a0674cc59c6aaad845ed0a48768fb56b90c41d52.tar.bz2
Init'd using http://www.a-land.de/vdr-vdrrip-0.3.0.tgz
Diffstat (limited to 'scripts/vdrshutdown.sh')
-rwxr-xr-xscripts/vdrshutdown.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/vdrshutdown.sh b/scripts/vdrshutdown.sh
new file mode 100755
index 0000000..e63e2ac
--- /dev/null
+++ b/scripts/vdrshutdown.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+#
+# This script executes the script $sleephalt in the backgroud
+# an gives the control back to vdr
+#
+# $sleephalt handles the shutdown with or without nvram-wakeup
+# and waits until <plugins-dir>/encode.vdrrip is deleted
+#
+# It is written by herbert attenberger <herbsl@a-land.de>
+#
+
+sleephalt="/usr/local/bin/sleephalt.sh"
+
+if [ -x $sleephalt ]
+then
+ $sleephalt $1 &
+else
+ echo
+ echo "script $sleephalt not found"
+ echo
+fi
+
+exit