diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 01:19:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 01:19:08 +0100 |
commit | caba1a16ec4a883376d53e5921917bb8485b5f49 (patch) | |
tree | 468e4b9f60a71027f60cc38815777d74fdb1c640 /util-linux | |
parent | 9b44deac01d61929a734a3ee4f739e95b024bfec (diff) | |
download | busybox-w32-caba1a16ec4a883376d53e5921917bb8485b5f49.tar.gz busybox-w32-caba1a16ec4a883376d53e5921917bb8485b5f49.tar.bz2 busybox-w32-caba1a16ec4a883376d53e5921917bb8485b5f49.zip |
tweak help texts
function old new delta
packed_usage 33650 33605 -45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/hwclock.c | 11 | ||||
-rw-r--r-- | util-linux/rtcwake.c | 18 |
2 files changed, 11 insertions, 18 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index e85bca2b2..791525fc2 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -296,16 +296,15 @@ static void set_system_clock_timezone(int utc) | |||
296 | 296 | ||
297 | //usage:#define hwclock_trivial_usage | 297 | //usage:#define hwclock_trivial_usage |
298 | //usage: IF_LONG_OPTS( | 298 | //usage: IF_LONG_OPTS( |
299 | //usage: "[-r|--show] [-s|--hctosys] [-w|--systohc] [--systz]" | 299 | //usage: "[-swu] [--systz] [--localtime] [-f FILE]" |
300 | //usage: " [--localtime] [-u|--utc]" | ||
301 | //usage: " [-f|--rtc FILE]" | ||
302 | //usage: ) | 300 | //usage: ) |
303 | //usage: IF_NOT_LONG_OPTS( | 301 | //usage: IF_NOT_LONG_OPTS( |
304 | //usage: "[-r] [-s] [-w] [-t] [-l] [-u] [-f FILE]" | 302 | //usage: "[-swtlu] [-f FILE]" |
305 | //usage: ) | 303 | //usage: ) |
306 | //usage:#define hwclock_full_usage "\n\n" | 304 | //usage:#define hwclock_full_usage "\n\n" |
307 | //usage: "Query and set hardware clock (RTC)\n" | 305 | //usage: "Show or set hardware clock (RTC)\n" |
308 | //usage: "\n -r Show hardware clock time" | 306 | ///////: "\n -r Show hardware clock time" |
307 | ///////-r is default, don't bother showing it in help | ||
309 | //usage: "\n -s Set system time from hardware clock" | 308 | //usage: "\n -s Set system time from hardware clock" |
310 | //usage: "\n -w Set hardware clock from system time" | 309 | //usage: "\n -w Set hardware clock from system time" |
311 | //usage: IF_LONG_OPTS( | 310 | //usage: IF_LONG_OPTS( |
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" |