Hello,
I just remember 2 important parts from my implementation:
- kill all nickel & Co (I donīt even start them; i commented them in run.sh)
- get the system- and the hardware-clock right. if they are not matching, the wakeup timestamp can not be used.
i am running a own sh-script to set the times from time to time. because both clocks are running un-synced.
I know its not completely correct with summer/winter-time. but I donīt care. I simply added another hour-wake to be more tolerant.
Quote:
echo `date`
ntpd -d -q -p de.pool.ntp.org
sleep 10
echo `date`
newtime=$((`date +%s`+7200))
newtime2=`date +%T -d @$newtime`
date +%T -s $newtime2
echo `date`
hwclock -w -u
|