opdenkamp/xbmc — pull request #544 by mikrohard (2012-06-12 11:32:09+00:00)
Title: Wakeup script fixes and additons

Currently the wakeup script doesn't work if daily wakeup is disabled because the uninitialized daily wakeup time is always lower than the timer wakeup time and therefore always used (even if disabled). The first commit fixes this problem (the daily wakeup time is used only if enabled).

The second commit extends the functionality by calling the wakeup script also on suspend and hibernate (currently it's only called on shutdown).