aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rtcwake.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/rtcwake.c')
-rw-r--r--util-linux/rtcwake.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c
index 823e55662..be7e95099 100644
--- a/util-linux/rtcwake.c
+++ b/util-linux/rtcwake.c
@@ -32,28 +32,22 @@
32 32
33//kbuild:lib-$(CONFIG_RTCWAKE) += rtcwake.o 33//kbuild:lib-$(CONFIG_RTCWAKE) += rtcwake.o
34 34
35//usage:#if ENABLE_FEATURE_HWCLOCK_ADJTIME_FHS
36//usage:# define ADJTIME_PATH "/var/lib/hwclock/adjtime"
37//usage:#else
38//usage:# define ADJTIME_PATH "/etc/adjtime"
39//usage:#endif
35//usage:#define rtcwake_trivial_usage 40//usage:#define rtcwake_trivial_usage
36//usage: "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]" 41//usage: "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
37//usage:#define rtcwake_full_usage "\n\n" 42//usage:#define rtcwake_full_usage "\n\n"
38//usage: "Enter a system sleep state until specified wakeup time\n" 43//usage: "Enter a system sleep state until specified wakeup time\n"
39//usage: IF_LONG_OPTS( 44//usage: "\n -a Read clock mode from "ADJTIME_PATH" (default)"
40//usage: "\n -a,--auto Read clock mode from adjtime"
41//usage: "\n -l,--local Clock is set to local time"
42//usage: "\n -u,--utc Clock is set to UTC time"
43//usage: "\n -d,--device DEV Specify the RTC device"
44//usage: "\n -m,--mode MODE Set sleep state (default: standby)"
45//usage: "\n -s,--seconds SEC Set timeout in SEC seconds from now"
46//usage: "\n -t,--time TIME Set timeout to TIME seconds from epoch"
47//usage: )
48//usage: IF_NOT_LONG_OPTS(
49//usage: "\n -a Read clock mode from adjtime"
50//usage: "\n -l Clock is set to local time" 45//usage: "\n -l Clock is set to local time"
51//usage: "\n -u Clock is set to UTC time" 46//usage: "\n -u Clock is set to UTC time"
52//usage: "\n -d DEV Specify the RTC device" 47//usage: "\n -d DEV Specify the RTC device"
53//usage: "\n -m MODE Set sleep state (default: standby)" 48//usage: "\n -m MODE Set sleep state (default: standby)"
54//usage: "\n -s SEC Set timeout in SEC seconds from now" 49//usage: "\n -s SEC Set timeout in SEC seconds from now"
55//usage: "\n -t TIME Set timeout to TIME seconds from epoch" 50//usage: "\n -t TIME Set timeout to TIME seconds from epoch"
56//usage: )
57 51
58#include "libbb.h" 52#include "libbb.h"
59#include "rtc_.h" 53#include "rtc_.h"