]> 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>
Mon, 1 Oct 2012 09:55:06 +0000 (11:55 +0200)
commit5e43aef723a9dbc5f4b845d83c77f57b9e58b050
tree82cbcf3d709a9653c91462b650f82aff931ee096
parentec14852ee3563d67de50ce2ce9328accbb016903
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