aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-16 01:19:08 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-16 01:19:08 +0100
commitcaba1a16ec4a883376d53e5921917bb8485b5f49 (patch)
tree468e4b9f60a71027f60cc38815777d74fdb1c640
parent9b44deac01d61929a734a3ee4f739e95b024bfec (diff)
downloadbusybox-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>
-rw-r--r--loginutils/chpasswd.c10
-rw-r--r--networking/udhcp/dumpleases.c8
-rw-r--r--selinux/chcon.c8
-rw-r--r--util-linux/hwclock.c11
-rw-r--r--util-linux/rtcwake.c18
5 files changed, 16 insertions, 39 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index 4e70b2557..a032abbed 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -24,21 +24,13 @@
24//kbuild:lib-$(CONFIG_CHPASSWD) += chpasswd.o 24//kbuild:lib-$(CONFIG_CHPASSWD) += chpasswd.o
25 25
26//usage:#define chpasswd_trivial_usage 26//usage:#define chpasswd_trivial_usage
27//usage: IF_LONG_OPTS("[--md5|--encrypted|--crypt-method|--root]") IF_NOT_LONG_OPTS("[-m|-e|-c|-R]") 27//usage: "[-me] [-c ALG] [-R DIR]"
28//usage:#define chpasswd_full_usage "\n\n" 28//usage:#define chpasswd_full_usage "\n\n"
29//usage: "Read user:password from stdin and update /etc/passwd\n" 29//usage: "Read user:password from stdin and update /etc/passwd\n"
30//usage: IF_LONG_OPTS(
31//usage: "\n -e,--encrypted Supplied passwords are in encrypted form"
32//usage: "\n -m,--md5 Encrypt using md5, not des"
33//usage: "\n -c,--crypt-method ALG "CRYPT_METHODS_HELP_STR
34//usage: "\n -R,--root DIR Directory to chroot into"
35//usage: )
36//usage: IF_NOT_LONG_OPTS(
37//usage: "\n -e Supplied passwords are in encrypted form" 30//usage: "\n -e Supplied passwords are in encrypted form"
38//usage: "\n -m Encrypt using md5, not des" 31//usage: "\n -m Encrypt using md5, not des"
39//usage: "\n -c ALG "CRYPT_METHODS_HELP_STR 32//usage: "\n -c ALG "CRYPT_METHODS_HELP_STR
40//usage: "\n -R DIR Directory to chroot into" 33//usage: "\n -R DIR Directory to chroot into"
41//usage: )
42 34
43#include "libbb.h" 35#include "libbb.h"
44 36
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index 70d2d1434..1e9405205 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -10,18 +10,10 @@
10//usage: "[-r|-a] [-d] [-f LEASEFILE]" 10//usage: "[-r|-a] [-d] [-f LEASEFILE]"
11//usage:#define dumpleases_full_usage "\n\n" 11//usage:#define dumpleases_full_usage "\n\n"
12//usage: "Display DHCP leases granted by udhcpd\n" 12//usage: "Display DHCP leases granted by udhcpd\n"
13//usage: IF_LONG_OPTS(
14//usage: "\n -f,--file FILE Lease file"
15//usage: "\n -r,--remaining Show remaining time"
16//usage: "\n -a,--absolute Show expiration time"
17//usage: "\n -d,--decimal Show time in seconds"
18//usage: )
19//usage: IF_NOT_LONG_OPTS(
20//usage: "\n -f FILE Lease file" 13//usage: "\n -f FILE Lease file"
21//usage: "\n -r Show remaining time" 14//usage: "\n -r Show remaining time"
22//usage: "\n -a Show expiration time" 15//usage: "\n -a Show expiration time"
23//usage: "\n -d Show time in seconds" 16//usage: "\n -d Show time in seconds"
24//usage: )
25 17
26#include "common.h" 18#include "common.h"
27#include "dhcpd.h" 19#include "dhcpd.h"
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 9b13679b8..2e4f94c0f 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -19,10 +19,10 @@
19//kbuild:lib-$(CONFIG_CHCON) += chcon.o 19//kbuild:lib-$(CONFIG_CHCON) += chcon.o
20 20
21//usage:#define chcon_trivial_usage 21//usage:#define chcon_trivial_usage
22//usage: "[OPTIONS] CONTEXT FILE..." 22//usage: "[-chfRv] CONTEXT FILE..."
23//usage: "\n chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..." 23//usage: "\n chcon [-chfRv] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..."
24//usage: IF_LONG_OPTS( 24//usage: IF_LONG_OPTS(
25//usage: "\n chcon [OPTIONS] --reference=RFILE FILE..." 25//usage: "\n chcon [-chfRv] --reference=RFILE FILE..."
26//usage: ) 26//usage: )
27//usage: 27//usage:
28//usage:#define chcon_full_usage "\n\n" 28//usage:#define chcon_full_usage "\n\n"
@@ -37,7 +37,7 @@
37//usage: "\n -u USER Set user/role/type/range in the target security context" 37//usage: "\n -u USER Set user/role/type/range in the target security context"
38//usage: "\n -r ROLE" 38//usage: "\n -r ROLE"
39//usage: "\n -t TYPE" 39//usage: "\n -t TYPE"
40//usage: "\n -l RNG" 40//usage: "\n -l RANGE"
41//usage: "\n -R Recurse" 41//usage: "\n -R Recurse"
42 42
43#include <selinux/context.h> 43#include <selinux/context.h>
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"