2015-11-10, 15:57
The code for setting the wakealarm executes very late while system is shutting down. So you have no chance to read the rtc because system shuts down immediatly after that. Look at the shutdown.sh (https://github.com/b-jesch/service.tvh.m...hutdown.sh), there is:
echo 0 > /sys/class/rtc/rtc0/wakealarm # reset the rtc
echo $2 > /sys/class/rtc/rtc0/wakealarm # set the new wakeup time
shutdown -h now # shutdown immediatly
echo 0 > /sys/class/rtc/rtc0/wakealarm # reset the rtc
echo $2 > /sys/class/rtc/rtc0/wakealarm # set the new wakeup time
shutdown -h now # shutdown immediatly