aboutsummaryrefslogtreecommitdiff
path: root/usr/share
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2012-02-08 00:07:24 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2012-02-08 00:07:24 +0000
commit78d4f851f9825470066a9a8045b26cbf9d2b1d38 (patch)
tree3ad24c372908acf912325160acfca21f2b45a56c /usr/share
parentBumped to version 0.4.10 (diff)
downloadgentoo-vdr-scripts-78d4f851f9825470066a9a8045b26cbf9d2b1d38.tar.gz
gentoo-vdr-scripts-78d4f851f9825470066a9a8045b26cbf9d2b1d38.tar.bz2
gentoo-vdr-scripts-78d4f851f9825470066a9a8045b26cbf9d2b1d38.zip
added paludis/cave support to vdrplugin-rebuild script, bug 394251; add custom shutdown command, bug 389371; moved svdrpsend.pl to svdrpsend command, used from vdr-1.7.23
svn path=/gentoo-vdr-scripts/trunk/; revision=691
Diffstat (limited to 'usr/share')
-rw-r--r--usr/share/vdr/bin/shutdown-custom_cmd.sh6
-rw-r--r--usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh7
2 files changed, 12 insertions, 1 deletions
diff --git a/usr/share/vdr/bin/shutdown-custom_cmd.sh b/usr/share/vdr/bin/shutdown-custom_cmd.sh
new file mode 100644
index 0000000..3a4cda6
--- /dev/null
+++ b/usr/share/vdr/bin/shutdown-custom_cmd.sh
@@ -0,0 +1,6 @@
+# $Id: shutdown-custom_cmd.sh
+# Author:
+# Lucian Muresan <lucianm@users.sourceforge.net>
+#
+
+${SHUTDOWN_CUSTOM_CMD}
diff --git a/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh b/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh
index 5f8892e..606c2d9 100644
--- a/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh
+++ b/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh
@@ -71,7 +71,12 @@ _set_wakeup() {
}
_do_shutdown() {
- SHUTDOWN_METHOD=halt
+ if [ -z "${SHUTDOWN_CUSTOM_CMD}" ]; then
+ SHUTDOWN_METHOD=halt
+ else
+ SHUTDOWN_METHOD=custom_cmd
+ fi
+
if [ -e "${reboot_mark_file}" ]; then
SHUTDOWN_METHOD=reboot
fi