| Summary: | media-tv/gentoo-vdr-scripts: add custom shutdown command | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Lucian Muresan <lucianm> |
| Component: | Current packages | Assignee: | Gentoo VDR Project <vdr> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | media-tv |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | customizable shutdown command | ||
|
Description
Lucian Muresan
2011-11-02 20:47:51 UTC
Created attachment 291553 [details, diff]
customizable shutdown command
Adds SHUTDOWN_CUSTOM_CMD variable to /etc/conf.d/vdr.shutdown, not initialized. If it is initialized to a 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, this command will be used when issuing powerdown from VDR, instead of "halt".
Of course, the user then has 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.
added to gentoo-vdr-scripts-0.4.10 this version needs >=vdr-1.7.23 anyway, we added several changes to this version, one of this is needed for vdr-1.7.23 |