diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-10-12 04:52:22 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-10-12 04:52:22 +0200 |
commit | 730e4d8b5245502803c9c2335e96d81f70d63012 (patch) | |
tree | 5b04a35a32b0fa73e831b7efe924a57cdcffb977 /init | |
parent | 7985bc109e0d738644094f391d08d9848a2f2b50 (diff) | |
download | busybox-w32-730e4d8b5245502803c9c2335e96d81f70d63012.tar.gz busybox-w32-730e4d8b5245502803c9c2335e96d81f70d63012.tar.bz2 busybox-w32-730e4d8b5245502803c9c2335e96d81f70d63012.zip |
init: better --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/init/init.c b/init/init.c index edb5be696..cc6a2b5be 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -9,11 +9,6 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | //applet:IF_INIT(APPLET(init, BB_DIR_SBIN, BB_SUID_DROP)) | ||
13 | //applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_ROOT, BB_SUID_DROP, linuxrc)) | ||
14 | |||
15 | //kbuild:lib-$(CONFIG_INIT) += init.o | ||
16 | |||
17 | //config:config INIT | 12 | //config:config INIT |
18 | //config: bool "init" | 13 | //config: bool "init" |
19 | //config: default y | 14 | //config: default y |
@@ -108,6 +103,11 @@ | |||
108 | //config: Note that on Linux, init attempts to detect serial terminal and | 103 | //config: Note that on Linux, init attempts to detect serial terminal and |
109 | //config: sets TERM to "vt102" if one is found. | 104 | //config: sets TERM to "vt102" if one is found. |
110 | 105 | ||
106 | //applet:IF_INIT(APPLET(init, BB_DIR_SBIN, BB_SUID_DROP)) | ||
107 | //applet:IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_ROOT, BB_SUID_DROP, linuxrc)) | ||
108 | |||
109 | //kbuild:lib-$(CONFIG_INIT) += init.o | ||
110 | |||
111 | #define DEBUG_SEGV_HANDLER 0 | 111 | #define DEBUG_SEGV_HANDLER 0 |
112 | 112 | ||
113 | #include "libbb.h" | 113 | #include "libbb.h" |
@@ -1230,7 +1230,14 @@ int init_main(int argc UNUSED_PARAM, char **argv) | |||
1230 | //usage:#define init_trivial_usage | 1230 | //usage:#define init_trivial_usage |
1231 | //usage: "" | 1231 | //usage: "" |
1232 | //usage:#define init_full_usage "\n\n" | 1232 | //usage:#define init_full_usage "\n\n" |
1233 | //usage: "Init is the parent of all processes" | 1233 | //usage: "Init is the first process started during boot. It never exits." |
1234 | //usage: IF_FEATURE_USE_INITTAB( | ||
1235 | //usage: "\n""It (re)spawns children according to /etc/inittab." | ||
1236 | //usage: ) | ||
1237 | //usage: IF_NOT_FEATURE_USE_INITTAB( | ||
1238 | //usage: "\n""This version of init doesn't use /etc/inittab," | ||
1239 | //usage: "\n""has fixed set of processed to run." | ||
1240 | //usage: ) | ||
1234 | //usage: | 1241 | //usage: |
1235 | //usage:#define init_notes_usage | 1242 | //usage:#define init_notes_usage |
1236 | //usage: "This version of init is designed to be run only by the kernel.\n" | 1243 | //usage: "This version of init is designed to be run only by the kernel.\n" |