summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorMike Frysinger2008-02-15 02:27:19 +0000
committerMike Frysinger2008-02-15 02:27:19 +0000
commit6b160e490d4d77596c1603d34d0a1ca0579a82da (patch)
tree653ab55714a0373751b619144e56b5ea163938f2 /include/usage.h
parentbe7d2a8ded621a6d62f8caa76f7c51185b166ab1 (diff)
downloadbusybox-6b160e490d4d77596c1603d34d0a1ca0579a82da.zip
busybox-6b160e490d4d77596c1603d34d0a1ca0579a82da.tar.gz
split some rtc funcs out of hwclock and into an rtc header/lib so that the new rtcwake applet as well as hwclock can utilize the same code
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h
index 51a9212..71e1d12 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3070,6 +3070,29 @@ USE_FEATURE_BRCTL_FANCY("\n" \
#define rpm2cpio_full_usage \
"Output a cpio archive of the rpm file"
+#define rtcwake_trivial_usage \
+ "[-a | -l | -u] [-d DEV] [-m MODE] [-s SECS | -t TIME]"
+#define rtcwake_full_usage \
+ "enter a system sleep state until specified wakeup time\n\n" \
+ USE_GETOPT_LONG( \
+ " -a,--auto Read clock mode from adjtime\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: 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" \
+ ) \
+ SKIP_GETOPT_LONG( \
+ " -a Read clock mode from adjtime\n" \
+ " -l Clock is set to local time\n" \
+ " -u Clock is set to UTC time\n" \
+ " -d DEV Specify the RTC device\n" \
+ " -m MODE Set the sleep state (default: standby)\n" \
+ " -s SEC Set the timeout in SEC seconds from now\n" \
+ " -t TIME Set the timeout to TIME seconds from epoch" \
+ )
+
#define runcon_trivial_usage \
"[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \
" runcon CONTEXT COMMAND [args]"