diff options
author | Rob Landley <rob@landley.net> | 2006-01-30 08:31:37 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-01-30 08:31:37 +0000 |
commit | 646129163a26171d48a335f7e22828848cf28cc5 (patch) | |
tree | 1e57cdfe9be4ec15c27276389a760f3ad6b5ab34 /init/Config.in | |
parent | 49576c0018358beda0e79e0ebb247b90e347e6e0 (diff) | |
download | busybox-w32-646129163a26171d48a335f7e22828848cf28cc5.tar.gz busybox-w32-646129163a26171d48a335f7e22828848cf28cc5.tar.bz2 busybox-w32-646129163a26171d48a335f7e22828848cf28cc5.zip |
Re-add initrd support, unify halt/reboot/poweroff, add -n and -f options.
Diffstat (limited to 'init/Config.in')
-rw-r--r-- | init/Config.in | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/init/Config.in b/init/Config.in index ba157081c..d5af54e47 100644 --- a/init/Config.in +++ b/init/Config.in | |||
@@ -12,21 +12,32 @@ config CONFIG_INIT | |||
12 | init is the first program run when the system boots. | 12 | init is the first program run when the system boots. |
13 | 13 | ||
14 | config CONFIG_FEATURE_USE_INITTAB | 14 | config CONFIG_FEATURE_USE_INITTAB |
15 | bool " Support reading an inittab file?" | 15 | bool " Support reading an inittab file" |
16 | default y | 16 | default y |
17 | depends on CONFIG_INIT | 17 | depends on CONFIG_INIT |
18 | help | 18 | help |
19 | Allow init to read an inittab file when the system boot. | 19 | Allow init to read an inittab file when the system boot. |
20 | 20 | ||
21 | config CONFIG_FEATURE_INITRD | 21 | config CONFIG_FEATURE_INIT_SCTTY |
22 | bool " Support running init from within an initrd?" | 22 | bool " Support running commands with a controlling-tty" |
23 | default n | ||
24 | depends on CONFIG_INIT | ||
25 | help | ||
26 | If this option is enabled a command starting with hyphen (-) | ||
27 | is run in its own session (setsid(2)) and possibly with a | ||
28 | controlling tty (TIOCSCTTY). This is not the traditional init | ||
29 | behavour, but is often what you want in an embedded system where | ||
30 | the console is only accessed during development or for maintenance. | ||
31 | |||
32 | config CONFIG_FEATURE_EXTRA_QUIET | ||
33 | bool " Be _extra_ quiet on boot" | ||
23 | default y | 34 | default y |
24 | depends on CONFIG_INIT | 35 | depends on CONFIG_INIT |
25 | help | 36 | help |
26 | Allow init to be called from an initrd as linuxrc. | 37 | Prevent init from logging some messages to the console during boot. |
27 | 38 | ||
28 | config CONFIG_FEATURE_INIT_COREDUMPS | 39 | config CONFIG_FEATURE_INIT_COREDUMPS |
29 | bool " Support dumping core for child processes (debugging only)?" | 40 | bool " Support dumping core for child processes (debugging only)" |
30 | default n | 41 | default n |
31 | depends on CONFIG_INIT | 42 | depends on CONFIG_INIT |
32 | help | 43 | help |
@@ -35,30 +46,24 @@ config CONFIG_FEATURE_INIT_COREDUMPS | |||
35 | core file sizes. If this option is disabled, processes | 46 | core file sizes. If this option is disabled, processes |
36 | will not generate any core files. | 47 | will not generate any core files. |
37 | 48 | ||
38 | config CONFIG_FEATURE_INIT_SCTTY | ||
39 | bool " Support running commands with a controlling-tty?" | ||
40 | default n | ||
41 | depends on CONFIG_INIT | ||
42 | help | ||
43 | If this option is enabled a command starting with hyphen (-) | ||
44 | is run in its own session (setsid(2)) and possibly with a | ||
45 | controlling tty (TIOCSCTTY). This is not the traditional init | ||
46 | behavour, but is often what you want in an embedded system where | ||
47 | the console is only accessed during development or for maintenance. | ||
48 | 49 | ||
49 | config CONFIG_FEATURE_EXTRA_QUIET | 50 | |
50 | bool " Should init be _extra_ quiet on boot?" | 51 | config CONFIG_FEATURE_INITRD |
52 | bool " Support running init from within an initrd (not initramfs)" | ||
51 | default y | 53 | default y |
52 | depends on CONFIG_INIT | 54 | depends on CONFIG_INIT |
53 | help | 55 | help |
54 | Prevent init from logging some messages to the console | 56 | Legacy support for running init under the old-style initrd. Allows |
55 | during boot. | 57 | the name linuxrc to act as init, and it doesn't assume init is PID 1. |
58 | |||
59 | This does not apply to initramfs, which runs /init as PID 1 and | ||
60 | requires no special support. | ||
56 | 61 | ||
57 | config CONFIG_HALT | 62 | config CONFIG_HALT |
58 | bool "halt" | 63 | bool "poweroff, halt, and reboot" |
59 | default y | 64 | default y |
60 | help | 65 | help |
61 | Stop all processes and halt the system. | 66 | Stop all processes and either halt, reboot, or power off the system. |
62 | 67 | ||
63 | config CONFIG_MESG | 68 | config CONFIG_MESG |
64 | bool "mesg" | 69 | bool "mesg" |
@@ -67,17 +72,9 @@ config CONFIG_MESG | |||
67 | Mesg controls access to your terminal by others. It is typically | 72 | Mesg controls access to your terminal by others. It is typically |
68 | used to allow or disallow other users to write to your terminal | 73 | used to allow or disallow other users to write to your terminal |
69 | 74 | ||
70 | config CONFIG_POWEROFF | ||
71 | bool "poweroff" | ||
72 | default y | 75 | default y |
73 | help | 76 | help |
74 | Stop all processes and (try to) power off the system. | 77 | Stop all processes and (try to) power off the system. |
75 | 78 | ||
76 | config CONFIG_REBOOT | ||
77 | bool "reboot" | ||
78 | default y | ||
79 | help | ||
80 | Stop all processes and reboot the system. | ||
81 | |||
82 | endmenu | 79 | endmenu |
83 | 80 | ||