From fcf67294309030651848d6d58226010ca21177b7 Mon Sep 17 00:00:00 2001 From: Marek Otahal Date: Fri, 26 Nov 2010 16:47:38 +0100 Subject: [PATCH] rtcwake: add 'show' mode for rtc alarm The 'show' mode prints information on current alarm setting. [kzak@redhat.com: - code clean up - don't setup alarm on 'disable' mode] Signed-off-by: Marek Otahal Signed-off-by: Karel Zak --- sys-utils/rtcwake.8 | 4 ++ sys-utils/rtcwake.c | 110 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 94 insertions(+), 20 deletions(-) diff --git a/sys-utils/rtcwake.8 b/sys-utils/rtcwake.8 index ee7af3a0..60f958a7 100644 --- a/sys-utils/rtcwake.8 +++ b/sys-utils/rtcwake.8 @@ -117,6 +117,10 @@ useful for debugging. .TP .B disable Disable previously set alarm. +.TP +.B show +Print alarm information in format: "alarm: off|on