From: Mike Frysinger Date: Wed, 4 Jun 2008 10:33:33 +0000 (-0000) Subject: change default rtcwake mode to match changed behavior in upstream util-linux X-Git-Tag: android-x86-2.2~1599 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1e93f3c5859aeebcca7c0480de2bd038defe8b1c;p=android-x86%2Fexternal-busybox.git change default rtcwake mode to match changed behavior in upstream util-linux --- diff --git a/include/usage.h b/include/usage.h index 7e72ad03a..2e5321306 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3308,7 +3308,7 @@ "\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" \ ) \ diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c index 515f812b3..2b2634f0b 100644 --- a/util-linux/rtcwake.c +++ b/util-linux/rtcwake.c @@ -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;