Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 389371
Collapse All | Expand All

(-)gentoo-vdr-scripts-0.4.9_orig/etc/conf.d/vdr.shutdown (+13 lines)
Lines 201-206 Link Here
201
#   default: no
201
#   default: no
202
#SHUTDOWN_SYSTOHC="yes"
202
#SHUTDOWN_SYSTOHC="yes"
203
203
204
#
205
# This may be a custom shutdown command like hibernate, hibernate-ram (from
206
# sys-power/hibernate-script for example) or something else
207
# which will suspend to RAM (STR, S3) or to disk (STD, S4) instead of
208
# powering off the machine, achieving faster startup on resuming.
209
# Of course, you then have to make sure when setting up this suspend/resume
210
# scenario, to stop the vdr service and unload the dvb modules before
211
# suspending, and load the modules and restart vdr when resuming. When using
212
# sys-power/hibernate-script, /etc/hibernate/common.conf comes handy for
213
# achieving this.
214
#
215
#SHUTDOWN_CUSTOM_CMD=""
216
204
# Debugging variables:
217
# Debugging variables:
205
#DEBUG=1
218
#DEBUG=1
206
#DRY_SHUTDOWN=1
219
#DRY_SHUTDOWN=1
(-)gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/bin/vdrshutdown-wakeup-helper.sh (-1 / +5 lines)
Lines 71-77 Link Here
71
}
71
}
72
72
73
_do_shutdown() {
73
_do_shutdown() {
74
	SHUTDOWN_METHOD=halt
74
	if [ -z "${SHUTDOWN_CUSTOM_CMD}" ]; then
75
		SHUTDOWN_METHOD=halt
76
	else
77
		SHUTDOWN_METHOD=custom_cmd
78
	fi
75
	if [ -e "${reboot_mark_file}" ]; then
79
	if [ -e "${reboot_mark_file}" ]; then
76
		SHUTDOWN_METHOD=reboot
80
		SHUTDOWN_METHOD=reboot
77
	fi
81
	fi
(-)gentoo-vdr-scripts-0.4.9_orig/usr/share/vdr/shutdown/shutdown-custom_cmd.sh (+6 lines)
Line 0 Link Here
1
# $Id: shutdown-custom_cmd.sh
2
# Author:
3
#   Lucian Muresan <lucianm@users.sourceforge.net>
4
#
5
6
${SHUTDOWN_CUSTOM_CMD}

Return to bug 389371