Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 291553 Details for
Bug 389371
media-tv/gentoo-vdr-scripts: add custom shutdown command
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
customizable shutdown command
gentoo-vdr-scripts-0.4.9_custom-shutdown-cmd.patch (text/plain), 2.15 KB, created by
Lucian Muresan
on 2011-11-02 20:57:51 UTC
(
hide
)
Description:
customizable shutdown command
Filename:
MIME Type:
Creator:
Lucian Muresan
Created:
2011-11-02 20:57:51 UTC
Size:
2.15 KB
patch
obsolete
>diff -Naur gentoo-vdr-scripts-0.4.9_orig/etc/conf.d/vdr.shutdown gentoo-vdr-scripts-0.4.9/etc/conf.d/vdr.shutdown >--- gentoo-vdr-scripts-0.4.9_orig/etc/conf.d/vdr.shutdown 2010-12-18 20:38:58.000000000 +0100 >+++ gentoo-vdr-scripts-0.4.9/etc/conf.d/vdr.shutdown 2011-10-24 22:11:33.589797996 +0200 >@@ -201,6 +201,19 @@ > # default: no > #SHUTDOWN_SYSTOHC="yes" > >+# >+# This may be a custom shutdown command like hibernate, hibernate-ram (from >+# sys-power/hibernate-script for example) or something else >+# which will suspend to RAM (STR, S3) or to disk (STD, S4) instead of >+# powering off the machine, achieving faster startup on resuming. >+# Of course, you then have to make sure when setting up this suspend/resume >+# scenario, to stop the vdr service and unload the dvb modules before >+# suspending, and load the modules and restart vdr when resuming. When using >+# sys-power/hibernate-script, /etc/hibernate/common.conf comes handy for >+# achieving this. >+# >+#SHUTDOWN_CUSTOM_CMD="" >+ > # Debugging variables: > #DEBUG=1 > #DRY_SHUTDOWN=1 >diff -Naur gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh gentoo-vdr-scripts-0.4.9/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh >--- gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh 2009-01-31 10:18:20.000000000 +0100 >+++ gentoo-vdr-scripts-0.4.9/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh 2011-10-24 22:27:06.295797994 +0200 >@@ -71,7 +71,11 @@ > } > > _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 >diff -Naur gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/shutdown/shutdown-custom_cmd.sh gentoo-vdr-scripts-0.4.9/usr/share/vdr/shutdown/shutdown-custom_cmd.sh >--- gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/shutdown/shutdown-custom_cmd.sh 1970-01-01 01:00:00.000000000 +0100 >+++ gentoo-vdr-scripts-0.4.9/usr/share/vdr/shutdown/shutdown-custom_cmd.sh 2011-10-24 22:26:31.652797996 +0200 >@@ -0,0 +1,6 @@ >+# $Id: shutdown-custom_cmd.sh >+# Author: >+# Lucian Muresan <lucianm@users.sourceforge.net> >+# >+ >+${SHUTDOWN_CUSTOM_CMD}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 389371
: 291553