diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-10-12 13:23:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-10-12 13:23:29 +0200 |
commit | 94c78aa0b91f2150bd038866addf3d0ee69474a8 (patch) | |
tree | c114f2e6a36cf0806a24aaa620157f5a480e5d4f /coreutils | |
parent | 7c3e96d4b3d419d76f97e17d42a4401ee685b7ec (diff) | |
download | busybox-w32-94c78aa0b91f2150bd038866addf3d0ee69474a8.tar.gz busybox-w32-94c78aa0b91f2150bd038866addf3d0ee69474a8.tar.bz2 busybox-w32-94c78aa0b91f2150bd038866addf3d0ee69474a8.zip |
config system: move some options closer to relevalnt tool subdirectories
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/Config.src | 19 | ||||
-rw-r--r-- | coreutils/df.c | 20 |
2 files changed, 35 insertions, 4 deletions
diff --git a/coreutils/Config.src b/coreutils/Config.src index 1bded03a6..6c9e47551 100644 --- a/coreutils/Config.src +++ b/coreutils/Config.src | |||
@@ -5,10 +5,6 @@ | |||
5 | 5 | ||
6 | menu "Coreutils" | 6 | menu "Coreutils" |
7 | 7 | ||
8 | INSERT | ||
9 | |||
10 | comment "Common options" | ||
11 | |||
12 | config FEATURE_VERBOSE | 8 | config FEATURE_VERBOSE |
13 | bool "Support verbose options (usually -v) for various applets" | 9 | bool "Support verbose options (usually -v) for various applets" |
14 | default y | 10 | default y |
@@ -17,6 +13,19 @@ config FEATURE_VERBOSE | |||
17 | Also enables long option (--verbose) if it exists. | 13 | Also enables long option (--verbose) if it exists. |
18 | Without this option, -v is accepted but ignored. | 14 | Without this option, -v is accepted but ignored. |
19 | 15 | ||
16 | comment "Common options for date and touch" | ||
17 | |||
18 | config FEATURE_TIMEZONE | ||
19 | bool "Allow timezone in dates" | ||
20 | default y | ||
21 | depends on DESKTOP | ||
22 | help | ||
23 | Permit the use of timezones when parsing user-provided data | ||
24 | strings, e.g. '1996-04-09 12:45:00 -0500'. | ||
25 | |||
26 | This requires support for the '%z' extension to strptime() which | ||
27 | may not be available in all implementations. | ||
28 | |||
20 | comment "Common options for cp and mv" | 29 | comment "Common options for cp and mv" |
21 | depends on CP || MV | 30 | depends on CP || MV |
22 | 31 | ||
@@ -37,4 +46,6 @@ config FEATURE_HUMAN_READABLE | |||
37 | help | 46 | help |
38 | Allow df, du, and ls to have human readable output. | 47 | Allow df, du, and ls to have human readable output. |
39 | 48 | ||
49 | INSERT | ||
50 | |||
40 | endmenu | 51 | endmenu |
diff --git a/coreutils/df.c b/coreutils/df.c index 9f8b3a71e..176aa079f 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -32,6 +32,26 @@ | |||
32 | //config: -a Show all filesystems | 32 | //config: -a Show all filesystems |
33 | //config: -i Inodes | 33 | //config: -i Inodes |
34 | //config: -B <SIZE> Blocksize | 34 | //config: -B <SIZE> Blocksize |
35 | //config: | ||
36 | //config:config FEATURE_SKIP_ROOTFS | ||
37 | //config: bool "Skip rootfs in mount table" | ||
38 | //config: default y | ||
39 | //config: depends on DF | ||
40 | //config: help | ||
41 | //config: Ignore rootfs entry in mount table. | ||
42 | //config: | ||
43 | //config: In Linux, kernel has a special filesystem, rootfs, which is initially | ||
44 | //config: mounted on /. It contains initramfs data, if kernel is configured | ||
45 | //config: to have one. Usually, another file system is mounted over / early | ||
46 | //config: in boot process, and therefore most tools which manipulate | ||
47 | //config: mount table, such as df, will skip rootfs entry. | ||
48 | //config: | ||
49 | //config: However, some systems do not mount anything on /. | ||
50 | //config: If you need to configure busybox for one of these systems, | ||
51 | //config: you may find it useful to turn this option off to make df show | ||
52 | //config: initramfs statistics. | ||
53 | //config: | ||
54 | //config: Otherwise, choose Y. | ||
35 | 55 | ||
36 | //applet:IF_DF(APPLET_NOEXEC(df, df, BB_DIR_BIN, BB_SUID_DROP, df)) | 56 | //applet:IF_DF(APPLET_NOEXEC(df, df, BB_DIR_BIN, BB_SUID_DROP, df)) |
37 | 57 | ||