Config.in 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  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 scripts/kbuild/config-language.txt.
  5. #
  6. menu "Shells"
  7. choice
  8. prompt "Choose which shell is aliased to 'sh' name"
  9. default BUSYBOX_CONFIG_SH_IS_ASH
  10. help
  11. Choose which shell you want to be executed by 'sh' alias.
  12. The ash shell is the most bash compatible and full featured one.
  13. # note: cannot use "select ASH" here, it breaks "make allnoconfig"
  14. config BUSYBOX_CONFIG_SH_IS_ASH
  15. depends on !BUSYBOX_CONFIG_NOMMU
  16. bool "ash"
  17. help
  18. Choose ash to be the shell executed by 'sh' name.
  19. The ash code will be built into busybox. If you don't select
  20. "ash" choice (CONFIG_ASH), this shell may only be invoked by
  21. the name 'sh' (and not 'ash').
  22. config BUSYBOX_CONFIG_SH_IS_HUSH
  23. bool "hush"
  24. help
  25. Choose hush to be the shell executed by 'sh' name.
  26. The hush code will be built into busybox. If you don't select
  27. "hush" choice (CONFIG_HUSH), this shell may only be invoked by
  28. the name 'sh' (and not 'hush').
  29. config BUSYBOX_CONFIG_SH_IS_NONE
  30. bool "none"
  31. endchoice
  32. choice
  33. prompt "Choose which shell is aliased to 'bash' name"
  34. default BUSYBOX_CONFIG_BASH_IS_NONE
  35. help
  36. Choose which shell you want to be executed by 'bash' alias.
  37. The ash shell is the most bash compatible and full featured one,
  38. although compatibility is far from being complete.
  39. Note that selecting this option does not switch on any bash
  40. compatibility code. It merely makes it possible to install
  41. /bin/bash (sym)link and run scripts which start with
  42. #!/bin/bash line.
  43. Many systems use it in scripts which use bash-specific features,
  44. even simple ones like $RANDOM. Without this option, busybox
  45. can't be used for running them because it won't recongnize
  46. "bash" as a supported applet name.
  47. config BUSYBOX_CONFIG_BASH_IS_ASH
  48. depends on !BUSYBOX_CONFIG_NOMMU
  49. bool "ash"
  50. help
  51. Choose ash to be the shell executed by 'bash' name.
  52. The ash code will be built into busybox. If you don't select
  53. "ash" choice (CONFIG_ASH), this shell may only be invoked by
  54. the name 'bash' (and not 'ash').
  55. config BUSYBOX_CONFIG_BASH_IS_HUSH
  56. bool "hush"
  57. help
  58. Choose hush to be the shell executed by 'bash' name.
  59. The hush code will be built into busybox. If you don't select
  60. "hush" choice (CONFIG_HUSH), this shell may only be invoked by
  61. the name 'bash' (and not 'hush').
  62. config BUSYBOX_CONFIG_BASH_IS_NONE
  63. bool "none"
  64. endchoice
  65. config BUSYBOX_CONFIG_ASH
  66. bool "ash"
  67. default BUSYBOX_DEFAULT_ASH
  68. depends on !BUSYBOX_CONFIG_NOMMU
  69. help
  70. Tha 'ash' shell adds about 60k in the default configuration and is
  71. the most complete and most pedantically correct shell included with
  72. busybox. This shell is actually a derivative of the Debian 'dash'
  73. shell (by Herbert Xu), which was created by porting the 'ash' shell
  74. (written by Kenneth Almquist) from NetBSD.
  75. # ash options
  76. # note: Don't remove !NOMMU part in the next line; it would break
  77. # menuconfig's indenting.
  78. if !NOMMU && (BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH)
  79. config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE
  80. bool "Optimize for size instead of speed"
  81. default BUSYBOX_DEFAULT_ASH_OPTIMIZE_FOR_SIZE
  82. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  83. config BUSYBOX_CONFIG_ASH_INTERNAL_GLOB
  84. bool "Use internal glob() implementation"
  85. default BUSYBOX_DEFAULT_ASH_INTERNAL_GLOB # Y is bigger, but because of uclibc glob() bug, let Y be default for now
  86. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  87. help
  88. Do not use glob() function from libc, use internal implementation.
  89. Use this if you are getting "glob.h: No such file or directory"
  90. or similar build errors.
  91. Note that as of now (2017-01), uclibc and musl glob() both have bugs
  92. which would break ash if you select N here.
  93. config BUSYBOX_CONFIG_ASH_BASH_COMPAT
  94. bool "bash-compatible extensions"
  95. default BUSYBOX_DEFAULT_ASH_BASH_COMPAT
  96. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  97. config BUSYBOX_CONFIG_ASH_JOB_CONTROL
  98. bool "Job control"
  99. default BUSYBOX_DEFAULT_ASH_JOB_CONTROL
  100. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  101. config BUSYBOX_CONFIG_ASH_ALIAS
  102. bool "Alias support"
  103. default BUSYBOX_DEFAULT_ASH_ALIAS
  104. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  105. config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT
  106. bool "Pseudorandom generator and $RANDOM variable"
  107. default BUSYBOX_DEFAULT_ASH_RANDOM_SUPPORT
  108. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  109. help
  110. Enable pseudorandom generator and dynamic variable "$RANDOM".
  111. Each read of "$RANDOM" will generate a new pseudorandom value.
  112. You can reset the generator by using a specified start value.
  113. After "unset RANDOM" the generator will switch off and this
  114. variable will no longer have special treatment.
  115. config BUSYBOX_CONFIG_ASH_EXPAND_PRMT
  116. bool "Expand prompt string"
  117. default BUSYBOX_DEFAULT_ASH_EXPAND_PRMT
  118. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  119. help
  120. $PS# may contain volatile content, such as backquote commands.
  121. This option recreates the prompt string from the environment
  122. variable each time it is displayed.
  123. config BUSYBOX_CONFIG_ASH_IDLE_TIMEOUT
  124. bool "Idle timeout variable $TMOUT"
  125. default BUSYBOX_DEFAULT_ASH_IDLE_TIMEOUT
  126. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  127. help
  128. Enable bash-like auto-logout after $TMOUT seconds of idle time.
  129. config BUSYBOX_CONFIG_ASH_MAIL
  130. bool "Check for new mail in interactive shell"
  131. default BUSYBOX_DEFAULT_ASH_MAIL
  132. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  133. help
  134. Enable "check for new mail" function:
  135. if set, $MAIL file and $MAILPATH list of files
  136. are checked for mtime changes, and "you have mail"
  137. message is printed if change is detected.
  138. config BUSYBOX_CONFIG_ASH_ECHO
  139. bool "echo builtin"
  140. default BUSYBOX_DEFAULT_ASH_ECHO
  141. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  142. config BUSYBOX_CONFIG_ASH_PRINTF
  143. bool "printf builtin"
  144. default BUSYBOX_DEFAULT_ASH_PRINTF
  145. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  146. config BUSYBOX_CONFIG_ASH_TEST
  147. bool "test builtin"
  148. default BUSYBOX_DEFAULT_ASH_TEST
  149. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  150. config BUSYBOX_CONFIG_ASH_HELP
  151. bool "help builtin"
  152. default BUSYBOX_DEFAULT_ASH_HELP
  153. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  154. config BUSYBOX_CONFIG_ASH_GETOPTS
  155. bool "getopts builtin"
  156. default BUSYBOX_DEFAULT_ASH_GETOPTS
  157. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  158. config BUSYBOX_CONFIG_ASH_CMDCMD
  159. bool "command builtin"
  160. default BUSYBOX_DEFAULT_ASH_CMDCMD
  161. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH
  162. help
  163. Enable support for the 'command' builtin, which allows
  164. you to run the specified command or builtin,
  165. even when there is a function with the same name.
  166. endif # ash options
  167. config BUSYBOX_CONFIG_CTTYHACK
  168. bool "cttyhack"
  169. default BUSYBOX_DEFAULT_CTTYHACK
  170. help
  171. One common problem reported on the mailing list is the "can't
  172. access tty; job control turned off" error message, which typically
  173. appears when one tries to use a shell with stdin/stdout on
  174. /dev/console.
  175. This device is special - it cannot be a controlling tty.
  176. The proper solution is to use the correct device instead of
  177. /dev/console.
  178. cttyhack provides a "quick and dirty" solution to this problem.
  179. It analyzes stdin with various ioctls, trying to determine whether
  180. it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
  181. On Linux it also checks sysfs for a pointer to the active console.
  182. If cttyhack is able to find the real console device, it closes
  183. stdin/out/err and reopens that device.
  184. Then it executes the given program. Opening the device will make
  185. that device a controlling tty. This may require cttyhack
  186. to be a session leader.
  187. Example for /etc/inittab (for busybox init):
  188. ::respawn:/bin/cttyhack /bin/sh
  189. Starting an interactive shell from boot shell script:
  190. setsid cttyhack sh
  191. Giving controlling tty to shell running with PID 1:
  192. # exec cttyhack sh
  193. Without cttyhack, you need to know exact tty name,
  194. and do something like this:
  195. # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
  196. Starting getty on a controlling tty from a shell script:
  197. # getty 115200 $(cttyhack)
  198. config BUSYBOX_CONFIG_HUSH
  199. bool "hush"
  200. default BUSYBOX_DEFAULT_HUSH
  201. help
  202. hush is a small shell (25k). It handles the normal flow control
  203. constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
  204. case/esac. Redirections, here documents, $((arithmetic))
  205. and functions are supported.
  206. It will compile and work on no-mmu systems.
  207. It does not handle select, aliases, tilde expansion,
  208. &>file and >&file redirection of stdout+stderr.
  209. config BUSYBOX_CONFIG_HUSH_BASH_COMPAT
  210. bool "bash-compatible extensions"
  211. default BUSYBOX_DEFAULT_HUSH_BASH_COMPAT
  212. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  213. config BUSYBOX_CONFIG_HUSH_BRACE_EXPANSION
  214. bool "Brace expansion"
  215. default BUSYBOX_DEFAULT_HUSH_BRACE_EXPANSION
  216. depends on BUSYBOX_CONFIG_HUSH_BASH_COMPAT
  217. help
  218. Enable {abc,def} extension.
  219. config BUSYBOX_CONFIG_HUSH_INTERACTIVE
  220. bool "Interactive mode"
  221. default BUSYBOX_DEFAULT_HUSH_INTERACTIVE
  222. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  223. help
  224. Enable interactive mode (prompt and command editing).
  225. Without this, hush simply reads and executes commands
  226. from stdin just like a shell script from a file.
  227. No prompt, no PS1/PS2 magic shell variables.
  228. config BUSYBOX_CONFIG_HUSH_SAVEHISTORY
  229. bool "Save command history to .hush_history"
  230. default BUSYBOX_DEFAULT_HUSH_SAVEHISTORY
  231. depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE && BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY
  232. config BUSYBOX_CONFIG_HUSH_JOB
  233. bool "Job control"
  234. default BUSYBOX_DEFAULT_HUSH_JOB
  235. depends on BUSYBOX_CONFIG_HUSH_INTERACTIVE
  236. help
  237. Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
  238. command (not entire shell), fg/bg builtins work. Without this option,
  239. "cmd &" still works by simply spawning a process and immediately
  240. prompting for next command (or executing next command in a script),
  241. but no separate process group is formed.
  242. config BUSYBOX_CONFIG_HUSH_TICK
  243. bool "Support process substitution"
  244. default BUSYBOX_DEFAULT_HUSH_TICK
  245. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  246. help
  247. Enable `command` and $(command).
  248. config BUSYBOX_CONFIG_HUSH_IF
  249. bool "Support if/then/elif/else/fi"
  250. default BUSYBOX_DEFAULT_HUSH_IF
  251. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  252. config BUSYBOX_CONFIG_HUSH_LOOPS
  253. bool "Support for, while and until loops"
  254. default BUSYBOX_DEFAULT_HUSH_LOOPS
  255. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  256. config BUSYBOX_CONFIG_HUSH_CASE
  257. bool "Support case ... esac statement"
  258. default BUSYBOX_DEFAULT_HUSH_CASE
  259. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  260. help
  261. Enable case ... esac statement. +400 bytes.
  262. config BUSYBOX_CONFIG_HUSH_FUNCTIONS
  263. bool "Support funcname() { commands; } syntax"
  264. default BUSYBOX_DEFAULT_HUSH_FUNCTIONS
  265. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  266. help
  267. Enable support for shell functions. +800 bytes.
  268. config BUSYBOX_CONFIG_HUSH_LOCAL
  269. bool "local builtin"
  270. default BUSYBOX_DEFAULT_HUSH_LOCAL
  271. depends on BUSYBOX_CONFIG_HUSH_FUNCTIONS
  272. help
  273. Enable support for local variables in functions.
  274. config BUSYBOX_CONFIG_HUSH_RANDOM_SUPPORT
  275. bool "Pseudorandom generator and $RANDOM variable"
  276. default BUSYBOX_DEFAULT_HUSH_RANDOM_SUPPORT
  277. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  278. help
  279. Enable pseudorandom generator and dynamic variable "$RANDOM".
  280. Each read of "$RANDOM" will generate a new pseudorandom value.
  281. config BUSYBOX_CONFIG_HUSH_MODE_X
  282. bool "Support 'hush -x' option and 'set -x' command"
  283. default BUSYBOX_DEFAULT_HUSH_MODE_X
  284. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  285. help
  286. This instructs hush to print commands before execution.
  287. Adds ~300 bytes.
  288. config BUSYBOX_CONFIG_HUSH_ECHO
  289. bool "echo builtin"
  290. default BUSYBOX_DEFAULT_HUSH_ECHO
  291. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  292. config BUSYBOX_CONFIG_HUSH_PRINTF
  293. bool "printf builtin"
  294. default BUSYBOX_DEFAULT_HUSH_PRINTF
  295. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  296. config BUSYBOX_CONFIG_HUSH_TEST
  297. bool "test builtin"
  298. default BUSYBOX_DEFAULT_HUSH_TEST
  299. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  300. config BUSYBOX_CONFIG_HUSH_HELP
  301. bool "help builtin"
  302. default BUSYBOX_DEFAULT_HUSH_HELP
  303. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  304. config BUSYBOX_CONFIG_HUSH_EXPORT
  305. bool "export builtin"
  306. default BUSYBOX_DEFAULT_HUSH_EXPORT
  307. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  308. config BUSYBOX_CONFIG_HUSH_EXPORT_N
  309. bool "Support 'export -n' option"
  310. default BUSYBOX_DEFAULT_HUSH_EXPORT_N
  311. depends on BUSYBOX_CONFIG_HUSH_EXPORT
  312. help
  313. export -n unexports variables. It is a bash extension.
  314. config BUSYBOX_CONFIG_HUSH_KILL
  315. bool "kill builtin (supports kill %jobspec)"
  316. default BUSYBOX_DEFAULT_HUSH_KILL
  317. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  318. config BUSYBOX_CONFIG_HUSH_WAIT
  319. bool "wait builtin"
  320. default BUSYBOX_DEFAULT_HUSH_WAIT
  321. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  322. config BUSYBOX_CONFIG_HUSH_TRAP
  323. bool "trap builtin"
  324. default BUSYBOX_DEFAULT_HUSH_TRAP
  325. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  326. config BUSYBOX_CONFIG_HUSH_TYPE
  327. bool "type builtin"
  328. default BUSYBOX_DEFAULT_HUSH_TYPE
  329. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  330. config BUSYBOX_CONFIG_HUSH_READ
  331. bool "read builtin"
  332. default BUSYBOX_DEFAULT_HUSH_READ
  333. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  334. config BUSYBOX_CONFIG_HUSH_SET
  335. bool "set builtin"
  336. default BUSYBOX_DEFAULT_HUSH_SET
  337. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  338. config BUSYBOX_CONFIG_HUSH_UNSET
  339. bool "unset builtin"
  340. default BUSYBOX_DEFAULT_HUSH_UNSET
  341. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  342. config BUSYBOX_CONFIG_HUSH_ULIMIT
  343. bool "ulimit builtin"
  344. default BUSYBOX_DEFAULT_HUSH_ULIMIT
  345. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  346. config BUSYBOX_CONFIG_HUSH_UMASK
  347. bool "umask builtin"
  348. default BUSYBOX_DEFAULT_HUSH_UMASK
  349. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  350. config BUSYBOX_CONFIG_HUSH_MEMLEAK
  351. bool "memleak builtin (debugging)"
  352. default BUSYBOX_DEFAULT_HUSH_MEMLEAK
  353. depends on BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  354. config BUSYBOX_CONFIG_MSH
  355. bool "msh (deprecated: aliased to hush)"
  356. default BUSYBOX_DEFAULT_MSH
  357. select BUSYBOX_CONFIG_HUSH
  358. help
  359. msh is deprecated and will be removed, please migrate to hush.
  360. comment "Options common to all shells"
  361. if ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  362. config BUSYBOX_CONFIG_FEATURE_SH_MATH
  363. bool "POSIX math support"
  364. default BUSYBOX_DEFAULT_FEATURE_SH_MATH
  365. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  366. help
  367. Enable math support in the shell via $((...)) syntax.
  368. config BUSYBOX_CONFIG_FEATURE_SH_MATH_64
  369. bool "Extend POSIX math support to 64 bit"
  370. default BUSYBOX_DEFAULT_FEATURE_SH_MATH_64
  371. depends on BUSYBOX_CONFIG_FEATURE_SH_MATH
  372. help
  373. Enable 64-bit math support in the shell. This will make the shell
  374. slightly larger, but will allow computation with very large numbers.
  375. This is not in POSIX, so do not rely on this in portable code.
  376. config BUSYBOX_CONFIG_FEATURE_SH_EXTRA_QUIET
  377. bool "Hide message on interactive shell startup"
  378. default BUSYBOX_DEFAULT_FEATURE_SH_EXTRA_QUIET
  379. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  380. help
  381. Remove the busybox introduction when starting a shell.
  382. config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE
  383. bool "Standalone shell"
  384. default BUSYBOX_DEFAULT_FEATURE_SH_STANDALONE
  385. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  386. help
  387. This option causes busybox shells to use busybox applets
  388. in preference to executables in the PATH whenever possible. For
  389. example, entering the command 'ifconfig' into the shell would cause
  390. busybox to use the ifconfig busybox applet. Specifying the fully
  391. qualified executable name, such as '/sbin/ifconfig' will still
  392. execute the /sbin/ifconfig executable on the filesystem. This option
  393. is generally used when creating a statically linked version of busybox
  394. for use as a rescue shell, in the event that you screw up your system.
  395. This is implemented by re-execing /proc/self/exe (typically)
  396. with right parameters.
  397. However, there are drawbacks: it is problematic in chroot jails
  398. without mounted /proc, and ps/top may show command name as 'exe'
  399. for applets started this way.
  400. config BUSYBOX_CONFIG_FEATURE_SH_NOFORK
  401. bool "Run 'nofork' applets directly"
  402. default BUSYBOX_DEFAULT_FEATURE_SH_NOFORK
  403. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  404. help
  405. This option causes busybox shells to not execute typical
  406. fork/exec/wait sequence, but call <applet>_main directly,
  407. if possible. (Sometimes it is not possible: for example,
  408. this is not possible in pipes).
  409. This will be done only for some applets (those which are marked
  410. NOFORK in include/applets.h).
  411. This may significantly speed up some shell scripts.
  412. This feature is relatively new. Use with care. Report bugs
  413. to project mailing list.
  414. config BUSYBOX_CONFIG_FEATURE_SH_HISTFILESIZE
  415. bool "Use $HISTFILESIZE"
  416. default BUSYBOX_DEFAULT_FEATURE_SH_HISTFILESIZE
  417. depends on BUSYBOX_CONFIG_ASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_SH_IS_ASH || BUSYBOX_CONFIG_BASH_IS_ASH || BUSYBOX_CONFIG_SH_IS_HUSH || BUSYBOX_CONFIG_BASH_IS_HUSH
  418. help
  419. This option makes busybox shells to use $HISTFILESIZE variable
  420. to set shell history size. Note that its max value is capped
  421. by "History size" setting in library tuning section.
  422. endif # Options common to all shells
  423. endmenu