diff options
author | Denys Vlasenko | 2021-10-12 13:23:29 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-10-12 13:23:29 +0200 |
commit | 94c78aa0b91f2150bd038866addf3d0ee69474a8 (patch) | |
tree | c114f2e6a36cf0806a24aaa620157f5a480e5d4f /coreutils | |
parent | 7c3e96d4b3d419d76f97e17d42a4401ee685b7ec (diff) | |
download | busybox-94c78aa0b91f2150bd038866addf3d0ee69474a8.zip busybox-94c78aa0b91f2150bd038866addf3d0ee69474a8.tar.gz |
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 1bded03..6c9e475 100644 --- a/coreutils/Config.src +++ b/coreutils/Config.src @@ -5,10 +5,6 @@ menu "Coreutils" -INSERT - -comment "Common options" - config FEATURE_VERBOSE bool "Support verbose options (usually -v) for various applets" default y @@ -17,6 +13,19 @@ config FEATURE_VERBOSE Also enables long option (--verbose) if it exists. Without this option, -v is accepted but ignored. +comment "Common options for date and touch" + +config FEATURE_TIMEZONE + bool "Allow timezone in dates" + default y + depends on DESKTOP + help + Permit the use of timezones when parsing user-provided data + strings, e.g. '1996-04-09 12:45:00 -0500'. + + This requires support for the '%z' extension to strptime() which + may not be available in all implementations. + comment "Common options for cp and mv" depends on CP || MV @@ -37,4 +46,6 @@ config FEATURE_HUMAN_READABLE help Allow df, du, and ls to have human readable output. +INSERT + endmenu diff --git a/coreutils/df.c b/coreutils/df.c index 9f8b3a7..176aa07 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -32,6 +32,26 @@ //config: -a Show all filesystems //config: -i Inodes //config: -B <SIZE> Blocksize +//config: +//config:config FEATURE_SKIP_ROOTFS +//config: bool "Skip rootfs in mount table" +//config: default y +//config: depends on DF +//config: help +//config: Ignore rootfs entry in mount table. +//config: +//config: In Linux, kernel has a special filesystem, rootfs, which is initially +//config: mounted on /. It contains initramfs data, if kernel is configured +//config: to have one. Usually, another file system is mounted over / early +//config: in boot process, and therefore most tools which manipulate +//config: mount table, such as df, will skip rootfs entry. +//config: +//config: However, some systems do not mount anything on /. +//config: If you need to configure busybox for one of these systems, +//config: you may find it useful to turn this option off to make df show +//config: initramfs statistics. +//config: +//config: Otherwise, choose Y. //applet:IF_DF(APPLET_NOEXEC(df, df, BB_DIR_BIN, BB_SUID_DROP, df)) |