upgrade busybox to v1.11.1 and add current upstream fixes
[openwrt.git] / package / busybox / config / init / Config.in
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 menu "Init Utilities"
7
8 config BUSYBOX_CONFIG_INIT
9         bool "init"
10         default y
11         select BUSYBOX_CONFIG_FEATURE_SYSLOG
12         help
13           init is the first program run when the system boots.
14
15 config BUSYBOX_CONFIG_DEBUG_INIT
16         bool "Debugging aid"
17         default n
18         depends on BUSYBOX_CONFIG_INIT
19         help
20           Turn this on to disable all the dangerous
21           rebooting stuff when debugging.
22
23 config BUSYBOX_CONFIG_FEATURE_USE_INITTAB
24         bool "Support reading an inittab file"
25         default y
26         depends on BUSYBOX_CONFIG_INIT
27         help
28           Allow init to read an inittab file when the system boot.
29
30 config BUSYBOX_CONFIG_FEATURE_KILL_REMOVED
31         bool "Support killing processes that have been removed from inittab"
32         default n
33         depends on BUSYBOX_CONFIG_FEATURE_USE_INITTAB
34         help
35           When respawn entries are removed from inittab and a SIGHUP is
36           sent to init, this feature will kill the processes that have
37           been removed.
38
39 config BUSYBOX_CONFIG_FEATURE_KILL_DELAY
40         int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
41         range 0 1024
42         default 0
43         help
44           With nonzero setting, init sends TERM, forks, child waits N
45           seconds, sends KILL and exits. Setting it too high is unwise
46           (child will hang around for too long and can actually kill
47           wrong process!)
48
49 config BUSYBOX_CONFIG_FEATURE_INIT_SCTTY
50         bool "Run commands with leading dash with controlling tty"
51         default n
52         depends on BUSYBOX_CONFIG_INIT
53         help
54           If this option is enabled, init will try to give a controlling
55           tty to any command which has leading hyphen (often it's "-/bin/sh").
56           More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
57           If device attached to STDIN_FILENO can be a ctty but is not yet
58           a ctty for other session, it will become this process' ctty.
59           This is not the traditional init behavour, but is often what you want
60           in an embedded system where the console is only accessed during
61           development or for maintenance.
62           NB: using cttyhack applet may work better.
63
64 config BUSYBOX_CONFIG_FEATURE_INIT_SYSLOG
65         bool "Enable init to write to syslog"
66         default y
67         depends on BUSYBOX_CONFIG_INIT
68
69 config BUSYBOX_CONFIG_FEATURE_EXTRA_QUIET
70         bool "Be _extra_ quiet on boot"
71         default n
72         depends on BUSYBOX_CONFIG_INIT
73         help
74           Prevent init from logging some messages to the console during boot.
75
76 config BUSYBOX_CONFIG_FEATURE_INIT_COREDUMPS
77         bool "Support dumping core for child processes (debugging only)"
78         default n
79         depends on BUSYBOX_CONFIG_INIT
80         help
81           If this option is enabled and the file /.init_enable_core
82           exists, then init will call setrlimit() to allow unlimited
83           core file sizes.  If this option is disabled, processes
84           will not generate any core files.
85
86
87
88 config BUSYBOX_CONFIG_FEATURE_INITRD
89         bool "Support running init from within an initrd (not initramfs)"
90         default n
91         depends on BUSYBOX_CONFIG_INIT
92         help
93           Legacy support for running init under the old-style initrd.  Allows
94           the name linuxrc to act as init, and it doesn't assume init is PID 1.
95
96           This does not apply to initramfs, which runs /init as PID 1 and
97           requires no special support.
98
99 config BUSYBOX_CONFIG_HALT
100         bool "poweroff, halt, and reboot"
101         default y
102         help
103           Stop all processes and either halt, reboot, or power off the system.
104
105 config BUSYBOX_CONFIG_MESG
106         bool "mesg"
107         default y
108         help
109           Mesg controls access to your terminal by others.  It is typically
110           used to allow or disallow other users to write to your terminal
111
112 endmenu