aboutsummaryrefslogtreecommitdiff
blob: 3cc9aa546d360f2a84f7154d3745a1b6af6c2812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id$

addon_main() {
	include shutdown-functions
	yesno "${SHUTDOWN_ACTIVE}" || return 0

	if [ -n "${USER_SHUTDOWN_SCRIPT}" ]; then
		add_param "--shutdown=${USER_SHUTDOWN_SCRIPT}"
		return 0
	fi

	# no custum shutdown-script
	add_param "--shutdown=/usr/share/vdr/bin/vdrshutdown-gate.sh"

	# warning about depricated acpi wakeup kernel > 2.6.38
	if [ "${WAKEUP_METHOD}" = acpi ]; then
		ewarn "use of acpi wakeup method is depricated"
		einfo "use rtc or nvram instead"
		logger -t vdr "WARNING:"
		logger -t vdr "use of acpi wakeup method is depricated"
		logger -t vdr "use rtc or nvram instead"
	fi

	return 0
}