aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
commitfb4da167114e96d7f20ef97474f976f8ffa604e7 (patch)
tree6f688202bc89ffa68b6679d1b252fd69b7471c94 /miscutils/makedevs.c
parent9f8eb1ee7620020e01b3596ac7259d51ebca7a7b (diff)
downloadbusybox-fb4da167114e96d7f20ef97474f976f8ffa604e7.tar.gz
Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index c945a1352..cbdb0e3a1 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -6,6 +6,37 @@
* Make ranges of device files quickly.
* known bugs: can't deal with alpha ranges
*/
+//config:config MAKEDEVS
+//config: bool "makedevs"
+//config: default y
+//config: help
+//config: 'makedevs' is a utility used to create a batch of devices with
+//config: one command.
+//config:
+//config: There are two choices for command line behaviour, the interface
+//config: as used by LEAF/Linux Router Project, or a device table file.
+//config:
+//config: 'leaf' is traditionally what busybox follows, it allows multiple
+//config: devices of a particluar type to be created per command.
+//config: e.g. /dev/hda[0-9]
+//config: Device properties are passed as command line arguments.
+//config:
+//config: 'table' reads device properties from a file or stdin, allowing
+//config: a batch of unrelated devices to be made with one command.
+//config: User/group names are allowed as an alternative to uid/gid.
+//config:
+//config:choice
+//config: prompt "Choose makedevs behaviour"
+//config: depends on MAKEDEVS
+//config: default FEATURE_MAKEDEVS_TABLE
+//config:
+//config:config FEATURE_MAKEDEVS_LEAF
+//config: bool "leaf"
+//config:
+//config:config FEATURE_MAKEDEVS_TABLE
+//config: bool "table"
+//config:
+//config:endchoice
//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF
//usage:#define makedevs_trivial_usage