]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rtcwake: doesn't reset wakealarm
authorGiacomo <giacomo.perale@gmail.com>
Wed, 12 Sep 2012 17:33:39 +0000 (17:33 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 13 Sep 2012 11:23:11 +0000 (13:23 +0200)
commit829eab67e6f279ef76e18df7d5fe36ffe43979e1
tree98c100bcf9dfd6de87108409c75d88728ea6c04f
parent2b945eda3da145c7434cd7cc9ebc6392dcbea15d
rtcwake: doesn't reset wakealarm

Disable an alarm use the same logic used to enable it: first try RTC_WKALM_SET
with the "enabled" flag set to false, if it fails fall back to RTC_AIE_OFF.

Signed-off-by: Giacomo <giacomo.perale@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.c