aboutsummaryrefslogtreecommitdiff
blob: 598fba0b99d1261ceb5ce826cae203dd24473adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Author:
#   Matthias Schwarzott <zzam@gmx.de>
#   Various other contributors from gentoo.de
#

RTC_WAKEUP=/usr/sbin/rtc-wakeup.sh

if [ ! -x "${RTC_WAKEUP}" ]; then
	mesg "rtc-wakeup.sh not found"
	return 1
fi

if [ ! -e /sys/class/rtc/rtc0/wakealarm ]; then
	mesg "/sys/class/rtc/rtc0/wakealarm does not exist"
	return 1
fi

"${RTC_WAKEUP}" "${VDR_WAKEUP_TIME}"