]> err.no Git - util-linux/commitdiff
rtcwake: fix the default mode to "standby"
authorPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Mon, 9 Jun 2008 09:35:59 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Jun 2008 10:49:00 +0000 (12:49 +0200)
Writing "suspend" to /sys/power/state does nothing.
Even "man rtcwake" says that default should be "standby" :)

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rtcwake.c

index 16e21a04f00f7997ea284f71824a534dcdac8941..d1e78f60f740c9855983b8b10169a0938aa4340c 100644 (file)
@@ -51,7 +51,7 @@ static char           *progname;
 #define SYS_POWER_STATE_PATH   "/sys/power/state"
 #define ADJTIME_PATH           "/etc/adjtime"
 #define DEFAULT_DEVICE         "/dev/rtc0"
-#define DEFAULT_MODE           "suspend"
+#define DEFAULT_MODE           "standby"
 
 enum ClockMode {
        CM_AUTO,