make the help for rtcwake reflect the actual default behavior
This commit is contained in:
parent
6075b2aee0
commit
85571d8d01
@ -3308,7 +3308,7 @@
|
|||||||
"\n -l,--local Clock is set to local time" \
|
"\n -l,--local Clock is set to local time" \
|
||||||
"\n -u,--utc Clock is set to UTC time" \
|
"\n -u,--utc Clock is set to UTC time" \
|
||||||
"\n -d,--device=DEV Specify the RTC device" \
|
"\n -d,--device=DEV Specify the RTC device" \
|
||||||
"\n -m,--mode=MODE Set the sleep state (default: standby)" \
|
"\n -m,--mode=MODE Set the sleep state (default: suspend)" \
|
||||||
"\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \
|
"\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \
|
||||||
"\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \
|
"\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \
|
||||||
) \
|
) \
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#define SYS_RTC_PATH "/sys/class/rtc/%s/device/power/wakeup"
|
#define SYS_RTC_PATH "/sys/class/rtc/%s/device/power/wakeup"
|
||||||
#define SYS_POWER_PATH "/sys/power/state"
|
#define SYS_POWER_PATH "/sys/power/state"
|
||||||
#define DEFAULT_MODE "standby"
|
#define DEFAULT_MODE "suspend"
|
||||||
|
|
||||||
static time_t rtc_time;
|
static time_t rtc_time;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user