OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line 1...
1 # DO NOT EDIT. This file is generated from Config.src 1 # DO NOT EDIT. This file is generated from Config.src
2 # 2 #
3 # For a description of the syntax of this configuration file, 3 # For a description of the syntax of this configuration file,
4 # see docs/Kconfig-language.txt. 4 # see scripts/kbuild/config-language.txt.
5 # 5 #
Line 6... Line 6...
6   6  
Line 7... Line 7...
7 menu "Init Utilities" 7 menu "Init Utilities"
8   8  
9 config BUSYBOX_CONFIG_BOOTCHARTD 9 config BUSYBOX_CONFIG_BOOTCHARTD
10 bool "bootchartd (10 kb)" 10 bool "bootchartd"
11 default BUSYBOX_DEFAULT_BOOTCHARTD 11 default BUSYBOX_DEFAULT_BOOTCHARTD
12 help 12 help
13 bootchartd is commonly used to profile the boot process 13 bootchartd is commonly used to profile the boot process
14 for the purpose of speeding it up. In this case, it is started 14 for the purpose of speeding it up. In this case, it is started
15 by the kernel as the init process. This is configured by adding 15 by the kernel as the init process. This is configured by adding
16 the init=/sbin/bootchartd option to the kernel command line. 16 the init=/sbin/bootchartd option to the kernel command line.
17   17  
18 It can also be used to monitor the resource usage of a specific 18 It can also be used to monitor the resource usage of a specific
19 application or the running system in general. In this case, 19 application or the running system in general. In this case,
Line 20... Line 20...
20 bootchartd is started interactively by running bootchartd start 20 bootchartd is started interactively by running bootchartd start
21 and stopped using bootchartd stop. 21 and stopped using bootchartd stop.
22   22  
23 config BUSYBOX_CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER 23 config BUSYBOX_CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER
24 bool "Compatible, bloated header" 24 bool "Compatible, bloated header"
25 default BUSYBOX_DEFAULT_FEATURE_BOOTCHARTD_BLOATED_HEADER 25 default BUSYBOX_DEFAULT_FEATURE_BOOTCHARTD_BLOATED_HEADER
26 depends on BUSYBOX_CONFIG_BOOTCHARTD 26 depends on BUSYBOX_CONFIG_BOOTCHARTD
27 help 27 help
28 Create extended header file compatible with "big" bootchartd. 28 Create extended header file compatible with "big" bootchartd.
29 "Big" bootchartd is a shell script and it dumps some 29 "Big" bootchartd is a shell script and it dumps some
30 "convenient" info into the header, such as: 30 "convenient" info int the header, such as:
31 title = Boot chart for `hostname` (`date`) 31 title = Boot chart for `hostname` (`date`)
32 system.uname = `uname -srvm` 32 system.uname = `uname -srvm`
33 system.release = `cat /etc/DISTRO-release` 33 system.release = `cat /etc/DISTRO-release`
34 system.cpu = `grep '^model name' /proc/cpuinfo | head -1` ($cpucount) 34 system.cpu = `grep '^model name' /proc/cpuinfo | head -1` ($cpucount)
35 system.kernel.options = `cat /proc/cmdline` 35 system.kernel.options = `cat /proc/cmdline`
Line 36... Line 36...
36 This data is not mandatory for bootchart graph generation, 36 This data is not mandatory for bootchart graph generation,
37 and is considered bloat. Nevertheless, this option 37 and is considered bloat. Nevertheless, this option
38 makes bootchartd applet to dump a subset of it. 38 makes bootchartd applet to dump a subset of it.
39   39  
40 config BUSYBOX_CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE 40 config BUSYBOX_CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE
41 bool "Support bootchartd.conf" 41 bool "Support bootchartd.conf"
42 default BUSYBOX_DEFAULT_FEATURE_BOOTCHARTD_CONFIG_FILE 42 default BUSYBOX_DEFAULT_FEATURE_BOOTCHARTD_CONFIG_FILE
43 depends on BUSYBOX_CONFIG_BOOTCHARTD 43 depends on BUSYBOX_CONFIG_BOOTCHARTD
44 help 44 help
45 Enable reading and parsing of $PWD/bootchartd.conf 45 Enable reading and parsing of $PWD/bootchartd.conf
46 and /etc/bootchartd.conf files. 46 and /etc/bootchartd.conf files.
47 config BUSYBOX_CONFIG_HALT 47 config BUSYBOX_CONFIG_HALT
Line 48... Line 48...
48 bool "halt (4 kb)" 48 bool "halt"
49 default BUSYBOX_DEFAULT_HALT 49 default BUSYBOX_DEFAULT_HALT
50 help 50 help
51 Stop all processes and halt the system. 51 Stop all processes and halt the system.
52   52  
Line 53... Line 53...
53 config BUSYBOX_CONFIG_POWEROFF 53 config BUSYBOX_CONFIG_POWEROFF
54 bool "poweroff (4 kb)" 54 bool "poweroff"
55 default BUSYBOX_DEFAULT_POWEROFF 55 default BUSYBOX_DEFAULT_POWEROFF
56 help 56 help
57 Stop all processes and power off the system. 57 Stop all processes and power off the system.
58   -  
59 config BUSYBOX_CONFIG_REBOOT -  
60 bool "reboot (4 kb)" -  
61 default BUSYBOX_DEFAULT_REBOOT -  
62 help -  
63 Stop all processes and reboot the system. -  
64   -  
65 config BUSYBOX_CONFIG_FEATURE_WAIT_FOR_INIT -  
66 bool "Before signaling init, make sure it is ready for it" -  
67 default BUSYBOX_DEFAULT_FEATURE_WAIT_FOR_INIT -  
68 depends on BUSYBOX_CONFIG_HALT || BUSYBOX_CONFIG_POWEROFF || BUSYBOX_CONFIG_REBOOT -  
Line 69... Line 58...
69 help 58  
70 In rare cases, poweroff may be commanded by firmware to OS 59 config BUSYBOX_CONFIG_REBOOT
71 even before init process exists. On Linux, this spawns 60 bool "reboot"
72 "/sbin/poweroff" very early. This option adds code 61 default BUSYBOX_DEFAULT_REBOOT
73 which checks that init is ready to receive poweroff 62 help
74 commands. Code size increase of ~80 bytes. 63 Stop all processes and reboot the system.
75   64  
Line 76... Line 65...
76 config BUSYBOX_CONFIG_FEATURE_CALL_TELINIT 65 config BUSYBOX_CONFIG_FEATURE_CALL_TELINIT
77 bool "Call telinit on shutdown and reboot" 66 bool "Call telinit on shutdown and reboot"
Line 78... Line 67...
78 default BUSYBOX_DEFAULT_FEATURE_CALL_TELINIT 67 default BUSYBOX_DEFAULT_FEATURE_CALL_TELINIT
79 depends on (BUSYBOX_CONFIG_HALT || BUSYBOX_CONFIG_POWEROFF || BUSYBOX_CONFIG_REBOOT) && !BUSYBOX_CONFIG_INIT 68 depends on (BUSYBOX_CONFIG_HALT || BUSYBOX_CONFIG_POWEROFF || BUSYBOX_CONFIG_REBOOT) && !BUSYBOX_CONFIG_INIT
80 help 69 help
81 Call an external program (normally telinit) to facilitate 70 Call an external program (normally telinit) to facilitate
82 a switch to a proper runlevel. 71 a switch to a proper runlevel.
83   72  
84 This option is only available if you selected halt and friends, 73 This option is only available if you selected halt and friends,
85 but did not select init. 74 but did not select init.
86   75  
87 config BUSYBOX_CONFIG_TELINIT_PATH 76 config BUSYBOX_CONFIG_TELINIT_PATH
88 string "Path to telinit executable" 77 string "Path to telinit executable"
89 default BUSYBOX_DEFAULT_TELINIT_PATH 78 default BUSYBOX_DEFAULT_TELINIT_PATH
90 depends on BUSYBOX_CONFIG_FEATURE_CALL_TELINIT 79 depends on BUSYBOX_CONFIG_FEATURE_CALL_TELINIT
91 help 80 help
Line 92... Line 81...
92 When busybox halt and friends have to call external telinit 81 When busybox halt and friends have to call external telinit
93 to facilitate proper shutdown, this path is to be used when 82 to facilitate proper shutdown, this path is to be used when
94 locating telinit executable. 83 locating telinit executable.
95 config BUSYBOX_CONFIG_INIT 84 config BUSYBOX_CONFIG_INIT
96 bool "init (10 kb)" 85 bool "init"
97 default BUSYBOX_DEFAULT_INIT 86 default BUSYBOX_DEFAULT_INIT
98 select BUSYBOX_CONFIG_FEATURE_SYSLOG 87 select BUSYBOX_CONFIG_FEATURE_SYSLOG
Line 99... Line 88...
99 help 88 help
100 init is the first program run when the system boots. 89 init is the first program run when the system boots.
Line 101... Line 90...
101   90  
102 config BUSYBOX_CONFIG_LINUXRC 91 config BUSYBOX_CONFIG_LINUXRC
103 bool "linuxrc: support running init from initrd (not initramfs)" 92 bool "linuxrc: support running init from initrd (not initramfs)"
104 default BUSYBOX_DEFAULT_LINUXRC 93 default BUSYBOX_DEFAULT_LINUXRC
105 select BUSYBOX_CONFIG_FEATURE_SYSLOG 94 select BUSYBOX_CONFIG_FEATURE_SYSLOG
106 help 95 help
Line 107... Line 96...
107 Legacy support for running init under the old-style initrd. Allows 96 Legacy support for running init under the old-style initrd. Allows
108 the name linuxrc to act as init, and it doesn't assume init is PID 1. 97 the name linuxrc to act as init, and it doesn't assume init is PID 1.
109   98  
110 This does not apply to initramfs, which runs /init as PID 1 and 99 This does not apply to initramfs, which runs /init as PID 1 and
111 requires no special support. 100 requires no special support.
112   101  
113 config BUSYBOX_CONFIG_FEATURE_USE_INITTAB 102 config BUSYBOX_CONFIG_FEATURE_USE_INITTAB
114 bool "Support reading an inittab file" 103 bool "Support reading an inittab file"
Line 115... Line 104...
115 default BUSYBOX_DEFAULT_FEATURE_USE_INITTAB 104 default BUSYBOX_DEFAULT_FEATURE_USE_INITTAB
116 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC 105 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC
117 help 106 help
118 Allow init to read an inittab file when the system boot. 107 Allow init to read an inittab file when the system boot.
119   108  
120 config BUSYBOX_CONFIG_FEATURE_KILL_REMOVED 109 config BUSYBOX_CONFIG_FEATURE_KILL_REMOVED
121 bool "Support killing processes that have been removed from inittab" 110 bool "Support killing processes that have been removed from inittab"
122 default BUSYBOX_DEFAULT_FEATURE_KILL_REMOVED 111 default BUSYBOX_DEFAULT_FEATURE_KILL_REMOVED
123 depends on BUSYBOX_CONFIG_FEATURE_USE_INITTAB 112 depends on BUSYBOX_CONFIG_FEATURE_USE_INITTAB
124 help 113 help
Line 125... Line 114...
125 When respawn entries are removed from inittab and a SIGHUP is 114 When respawn entries are removed from inittab and a SIGHUP is
126 sent to init, this option will make init kill the processes 115 sent to init, this option will make init kill the processes
127 that have been removed. 116 that have been removed.
128   117  
129 config BUSYBOX_CONFIG_FEATURE_KILL_DELAY 118 config BUSYBOX_CONFIG_FEATURE_KILL_DELAY
130 int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED 119 int "How long to wait between TERM and KILL (0 - send TERM only)" if FEATURE_KILL_REMOVED
131 range 0 1024 120 range 0 1024
132 default BUSYBOX_DEFAULT_FEATURE_KILL_DELAY 121 default BUSYBOX_DEFAULT_FEATURE_KILL_DELAY
133 depends on BUSYBOX_CONFIG_FEATURE_KILL_REMOVED 122 depends on BUSYBOX_CONFIG_FEATURE_KILL_REMOVED
134 help 123 help
135 With nonzero setting, init sends TERM, forks, child waits N 124 With nonzero setting, init sends TERM, forks, child waits N
136 seconds, sends KILL and exits. Setting it too high is unwise 125 seconds, sends KILL and exits. Setting it too high is unwise
137 (child will hang around for too long and could actually kill 126 (child will hang around for too long and could actually kill
138 the wrong process!) 127 the wrong process!)
Line 139... Line 128...
139   128  
140 config BUSYBOX_CONFIG_FEATURE_INIT_SCTTY 129 config BUSYBOX_CONFIG_FEATURE_INIT_SCTTY
141 bool "Run commands with leading dash with controlling tty" 130 bool "Run commands with leading dash with controlling tty"
142 default BUSYBOX_DEFAULT_FEATURE_INIT_SCTTY 131 default BUSYBOX_DEFAULT_FEATURE_INIT_SCTTY
143 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC 132 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC
144 help 133 help
145 If this option is enabled, init will try to give a controlling 134 If this option is enabled, init will try to give a controlling
146 tty to any command which has leading hyphen (often it's "-/bin/sh"). 135 tty to any command which has leading hyphen (often it's "-/bin/sh").
Line 147... Line 136...
147 More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)". 136 More precisely, init will do "ioctl(STDIN_FILENO, TIOCSCTTY, 0)".
148 If device attached to STDIN_FILENO can be a ctty but is not yet 137 If device attached to STDIN_FILENO can be a ctty but is not yet
149 a ctty for other session, it will become this process' ctty. 138 a ctty for other session, it will become this process' ctty.
150 This is not the traditional init behavour, but is often what you want 139 This is not the traditional init behavour, but is often what you want
Line 169... Line 158...
169 config BUSYBOX_CONFIG_FEATURE_INIT_COREDUMPS 158 config BUSYBOX_CONFIG_FEATURE_INIT_COREDUMPS
170 bool "Support dumping core for child processes (debugging only)" 159 bool "Support dumping core for child processes (debugging only)"
171 default BUSYBOX_DEFAULT_FEATURE_INIT_COREDUMPS # not Y because this is a debug option 160 default BUSYBOX_DEFAULT_FEATURE_INIT_COREDUMPS # not Y because this is a debug option
172 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC 161 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC
173 help 162 help
174 If this option is enabled and the file /.init_enable_core 163 If this option is enabled and the file /.init_enable_core
175 exists, then init will call setrlimit() to allow unlimited 164 exists, then init will call setrlimit() to allow unlimited
176 core file sizes. If this option is disabled, processes 165 core file sizes. If this option is disabled, processes
177 will not generate any core files. 166 will not generate any core files.
Line 178... Line 167...
178   167  
179 config BUSYBOX_CONFIG_INIT_TERMINAL_TYPE 168 config BUSYBOX_CONFIG_INIT_TERMINAL_TYPE
180 string "Initial terminal type" 169 string "Initial terminal type"
181 default BUSYBOX_DEFAULT_INIT_TERMINAL_TYPE 170 default BUSYBOX_DEFAULT_INIT_TERMINAL_TYPE
182 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC 171 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC
183 help 172 help
184 This is the initial value set by init for the TERM environment 173 This is the initial value set by init for the TERM environment
185 variable. This variable is used by programs which make use of 174 variable. This variable is used by programs which make use of
Line 186... Line 175...
186 extended terminal capabilities. 175 extended terminal capabilities.
187   176  
Line 188... Line 177...
188 Note that on Linux, init attempts to detect serial terminal and 177 Note that on Linux, init attempts to detect serial terminal and
189 sets TERM to "vt102" if one is found. 178 sets TERM to "vt102" if one is found.
190   179  
191 config BUSYBOX_CONFIG_FEATURE_INIT_MODIFY_CMDLINE 180 config BUSYBOX_CONFIG_FEATURE_INIT_MODIFY_CMDLINE
192 bool "Clear init's command line" 181 bool "Clear init's command line"
193 default BUSYBOX_DEFAULT_FEATURE_INIT_MODIFY_CMDLINE 182 default BUSYBOX_DEFAULT_FEATURE_INIT_MODIFY_CMDLINE
194 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC 183 depends on BUSYBOX_CONFIG_INIT || BUSYBOX_CONFIG_LINUXRC
195 help 184 help
196 When launched as PID 1 and after parsing its arguments, init 185 When launched as PID 1 and after parsing its arguments, init
197 wipes all the arguments but argv[0] and rewrites argv[0] to 186 wipes all the arguments but argv[0] and rewrites argv[0] to
198 contain only "init", so that its command line appears solely as 187 contain only "init", so that its command line appears solely as
199 "init" in tools such as ps. 188 "init" in tools such as ps.
200 If this option is set to Y, init will keep its original behavior, 189 If this option is set to Y, init will keep its original behavior,
201 otherwise, all the arguments including argv[0] will be preserved, 190 otherwise, all the arguments including argv[0] will be preserved,
Line 202... Line 191...
202 be they parsed or ignored by init. 191 be they parsed or ignored by init.