summarylogtreecommitdiffstats
path: root/vdr-shutdown.sh
diff options
context:
space:
mode:
authorM0Rf302015-06-17 16:37:57 +0200
committerM0Rf302015-06-17 16:37:57 +0200
commit6d1fad3091bdd0c5eb7553d54b19fb389653b588 (patch)
tree1eed891726e22b9dc732c47937e6fb86b8bb87dd /vdr-shutdown.sh
downloadaur-6d1fad3091bdd0c5eb7553d54b19fb389653b588.tar.gz
Initial import
Diffstat (limited to 'vdr-shutdown.sh')
-rwxr-xr-xvdr-shutdown.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/vdr-shutdown.sh b/vdr-shutdown.sh
new file mode 100755
index 000000000000..e628b212735f
--- /dev/null
+++ b/vdr-shutdown.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# To enable this script, pass it to vdr with the -s option, eg.
+# "-s vdr-shutdown.sh" (sans quotes) in VDR_OPTIONS in /etc/sysconfig/vdr.
+
+echo ${1:-0} > /var/run/vdr/next-timer
+exec sudo /sbin/shutdown -P now