OSDN Git Service

change default rtcwake mode to match changed behavior in upstream util-linux
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 Jun 2008 10:33:33 +0000 (10:33 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 4 Jun 2008 10:33:33 +0000 (10:33 -0000)
include/usage.h
util-linux/rtcwake.c

index 7e72ad0..2e53213 100644 (file)
      "\n       -l,--local       Clock is set to local time" \
      "\n       -u,--utc         Clock is set to UTC time" \
      "\n       -d,--device=DEV  Specify the RTC device" \
-     "\n       -m,--mode=MODE   Set the sleep state (default: suspend)" \
+     "\n       -m,--mode=MODE   Set the sleep state (default: standby)" \
      "\n       -s,--seconds=SEC Set the timeout in SEC seconds from now" \
      "\n       -t,--time=TIME   Set the timeout to TIME seconds from epoch" \
        ) \
index 515f812..2b2634f 100644 (file)
@@ -26,7 +26,7 @@
 
 #define SYS_RTC_PATH   "/sys/class/rtc/%s/device/power/wakeup"
 #define SYS_POWER_PATH "/sys/power/state"
-#define DEFAULT_MODE   "suspend"
+#define DEFAULT_MODE   "standby"
 
 static time_t rtc_time;