Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs to rockstor#735 rockstor#1306 rockstor#1036 system_shutdown and system_reboot run with a delta, default to now when running from user input from WebUi and 3 mins when called via scheduled tasks Added system_suspend function just running a systemctl suspend Added wakeup functions set_system_rtc_wake and clean_system_rtc_wake: set_system_rtc_wake is our core function to set system wakeup, writing to default rtc0 wakealarm user wakeup time in epoch format, after flushing every wakeup value with clean_system_rtc_wake (write 0 to clean every time or we raise a resurce busy err) IMPORTANT: epoch can't be passed as a string, needed int -> write('%s' % epoch) fails Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
- Loading branch information