1
0

Config.in 7.8 KB

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