Config.src 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Miscellaneous Utilities"
  6. INSERT
  7. config ADJTIMEX
  8. bool "adjtimex"
  9. default y
  10. depends on PLATFORM_LINUX
  11. help
  12. Adjtimex reads and optionally sets adjustment parameters for
  13. the Linux clock adjustment algorithm.
  14. config BBCONFIG
  15. bool "bbconfig"
  16. default n
  17. help
  18. The bbconfig applet will print the config file with which
  19. busybox was built.
  20. config FEATURE_COMPRESS_BBCONFIG
  21. bool "Compress bbconfig data"
  22. default y
  23. depends on BBCONFIG
  24. help
  25. Store bbconfig data in compressed form, uncompress them on-the-fly
  26. before output.
  27. If you have a really tiny busybox with few applets enabled (and
  28. bunzip2 isn't one of them), the overhead of the decompressor might
  29. be noticeable. Also, if you run executables directly from ROM
  30. and have very little memory, this might not be a win. Otherwise,
  31. you probably want this.
  32. config BEEP
  33. bool "beep"
  34. default y
  35. depends on PLATFORM_LINUX
  36. help
  37. The beep applets beeps in a given freq/Hz.
  38. config FEATURE_BEEP_FREQ
  39. int "default frequency"
  40. range 0 2147483647
  41. default 4000
  42. depends on BEEP
  43. help
  44. Frequency for default beep.
  45. config FEATURE_BEEP_LENGTH_MS
  46. int "default length"
  47. range 0 2147483647
  48. default 30
  49. depends on BEEP
  50. help
  51. Length in ms for default beep.
  52. config CHAT
  53. bool "chat"
  54. default y
  55. help
  56. Simple chat utility.
  57. config FEATURE_CHAT_NOFAIL
  58. bool "Enable NOFAIL expect strings"
  59. depends on CHAT
  60. default y
  61. help
  62. When enabled expect strings which are started with a dash trigger
  63. no-fail mode. That is when expectation is not met within timeout
  64. the script is not terminated but sends next SEND string and waits
  65. for next EXPECT string. This allows to compose far more flexible
  66. scripts.
  67. config FEATURE_CHAT_TTY_HIFI
  68. bool "Force STDIN to be a TTY"
  69. depends on CHAT
  70. default n
  71. help
  72. Original chat always treats STDIN as a TTY device and sets for it
  73. so-called raw mode. This option turns on such behaviour.
  74. config FEATURE_CHAT_IMPLICIT_CR
  75. bool "Enable implicit Carriage Return"
  76. depends on CHAT
  77. default y
  78. help
  79. When enabled make chat to terminate all SEND strings with a "\r"
  80. unless "\c" is met anywhere in the string.
  81. config FEATURE_CHAT_SWALLOW_OPTS
  82. bool "Swallow options"
  83. depends on CHAT
  84. default y
  85. help
  86. Busybox chat require no options. To make it not fail when used
  87. in place of original chat (which has a bunch of options) turn
  88. this on.
  89. config FEATURE_CHAT_SEND_ESCAPES
  90. bool "Support weird SEND escapes"
  91. depends on CHAT
  92. default y
  93. help
  94. Original chat uses some escape sequences in SEND arguments which
  95. are not sent to device but rather performs special actions.
  96. E.g. "\K" means to send a break sequence to device.
  97. "\d" delays execution for a second, "\p" -- for a 1/100 of second.
  98. Before turning this option on think twice: do you really need them?
  99. config FEATURE_CHAT_VAR_ABORT_LEN
  100. bool "Support variable-length ABORT conditions"
  101. depends on CHAT
  102. default y
  103. help
  104. Original chat uses fixed 50-bytes length ABORT conditions. Say N here.
  105. config FEATURE_CHAT_CLR_ABORT
  106. bool "Support revoking of ABORT conditions"
  107. depends on CHAT
  108. default y
  109. help
  110. Support CLR_ABORT directive.
  111. config CHRT
  112. bool "chrt"
  113. default y
  114. help
  115. manipulate real-time attributes of a process.
  116. This requires sched_{g,s}etparam support in your libc.
  117. config CROND
  118. bool "crond"
  119. default y
  120. select FEATURE_SYSLOG
  121. help
  122. Crond is a background daemon that parses individual crontab
  123. files and executes commands on behalf of the users in question.
  124. This is a port of dcron from slackware. It uses files of the
  125. format /var/spool/cron/crontabs/<username> files, for example:
  126. $ cat /var/spool/cron/crontabs/root
  127. # Run daily cron jobs at 4:40 every day:
  128. 40 4 * * * /etc/cron/daily > /dev/null 2>&1
  129. config FEATURE_CROND_D
  130. bool "Support option -d to redirect output to stderr"
  131. depends on CROND
  132. default y
  133. help
  134. -d sets loglevel to 0 (most verbose) and directs all output to stderr.
  135. config FEATURE_CROND_CALL_SENDMAIL
  136. bool "Report command output via email (using sendmail)"
  137. default y
  138. depends on CROND
  139. help
  140. Command output will be sent to corresponding user via email.
  141. config FEATURE_CROND_DIR
  142. string "crond spool directory"
  143. default "/var/spool/cron"
  144. depends on CROND || CRONTAB
  145. help
  146. Location of crond spool.
  147. config CRONTAB
  148. bool "crontab"
  149. default y
  150. select FEATURE_SUID
  151. help
  152. Crontab manipulates the crontab for a particular user. Only
  153. the superuser may specify a different user and/or crontab directory.
  154. Note that Busybox binary must be setuid root for this applet to
  155. work properly.
  156. config DC
  157. bool "dc"
  158. default y
  159. help
  160. Dc is a reverse-polish desk calculator which supports unlimited
  161. precision arithmetic.
  162. config FEATURE_DC_LIBM
  163. bool "Enable power and exp functions (requires libm)"
  164. default y
  165. depends on DC
  166. help
  167. Enable power and exp functions.
  168. NOTE: This will require libm to be present for linking.
  169. config DEVFSD
  170. bool "devfsd (obsolete)"
  171. default n
  172. depends on PLATFORM_LINUX
  173. select FEATURE_SYSLOG
  174. help
  175. This is deprecated and should NOT be used anymore.
  176. Use linux >= 2.6 (optionally with hotplug) and mdev instead!
  177. See docs/mdev.txt for detailed instructions on how to use mdev
  178. instead.
  179. Provides compatibility with old device names on a devfs systems.
  180. You should set it to true if you have devfs enabled.
  181. The following keywords in devsfd.conf are supported:
  182. "CLEAR_CONFIG", "INCLUDE", "OPTIONAL_INCLUDE", "RESTORE",
  183. "PERMISSIONS", "EXECUTE", "COPY", "IGNORE",
  184. "MKOLDCOMPAT", "MKNEWCOMPAT","RMOLDCOMPAT", "RMNEWCOMPAT".
  185. But only if they are written UPPERCASE!!!!!!!!
  186. config DEVFSD_MODLOAD
  187. bool "Adds support for MODLOAD keyword in devsfd.conf"
  188. default y
  189. depends on DEVFSD
  190. help
  191. This actually doesn't work with busybox modutils but needs
  192. the external modutils.
  193. config DEVFSD_FG_NP
  194. bool "Enables the -fg and -np options"
  195. default y
  196. depends on DEVFSD
  197. help
  198. -fg Run the daemon in the foreground.
  199. -np Exit after parsing the configuration file.
  200. Do not poll for events.
  201. config DEVFSD_VERBOSE
  202. bool "Increases logging (and size)"
  203. default y
  204. depends on DEVFSD
  205. help
  206. Increases logging to stderr or syslog.
  207. config FEATURE_DEVFS
  208. bool "Use devfs names for all devices (obsolete)"
  209. default n
  210. depends on PLATFORM_LINUX
  211. help
  212. This is obsolete and should NOT be used anymore.
  213. Use linux >= 2.6 (optionally with hotplug) and mdev instead!
  214. For legacy systems -- if there is no way around devfsd -- this
  215. tells busybox to look for names like /dev/loop/0 instead of
  216. /dev/loop0. If your /dev directory has normal names instead of
  217. devfs names, you don't want this.
  218. config DEVMEM
  219. bool "devmem"
  220. default y
  221. help
  222. devmem is a small program that reads and writes from physical
  223. memory using /dev/mem.
  224. config EJECT
  225. bool "eject"
  226. default y
  227. depends on PLATFORM_LINUX
  228. help
  229. Used to eject cdroms. (defaults to /dev/cdrom)
  230. config FEATURE_EJECT_SCSI
  231. bool "SCSI support"
  232. default y
  233. depends on EJECT
  234. help
  235. Add the -s option to eject, this allows to eject SCSI-Devices and
  236. usb-storage devices.
  237. config FBSPLASH
  238. bool "fbsplash"
  239. default y
  240. depends on PLATFORM_LINUX
  241. help
  242. Shows splash image and progress bar on framebuffer device.
  243. Can be used during boot phase of an embedded device. ~2kb.
  244. Usage:
  245. - use kernel option 'vga=xxx' or otherwise enable fb device.
  246. - put somewhere fbsplash.cfg file and an image in .ppm format.
  247. - $ setsid fbsplash [params] &
  248. -c: hide cursor
  249. -d /dev/fbN: framebuffer device (if not /dev/fb0)
  250. -s path_to_image_file (can be "-" for stdin)
  251. -i path_to_cfg_file (can be "-" for stdin)
  252. -f path_to_fifo (can be "-" for stdin)
  253. - if you want to run it only in presence of kernel parameter:
  254. grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] &
  255. - commands for fifo:
  256. "NN" (ASCII decimal number) - percentage to show on progress bar
  257. "exit" - well you guessed it
  258. config FLASHCP
  259. bool "flashcp"
  260. default n # doesn't build on Ubuntu 8.04
  261. help
  262. The flashcp binary, inspired by mtd-utils as of git head 5eceb74f7.
  263. This utility is used to copy images into a MTD device.
  264. config FLASH_LOCK
  265. bool "flash_lock"
  266. default n # doesn't build on Ubuntu 8.04
  267. help
  268. The flash_lock binary from mtd-utils as of git head 5ec0c10d0. This
  269. utility locks part or all of the flash device.
  270. config FLASH_UNLOCK
  271. bool "flash_unlock"
  272. default n # doesn't build on Ubuntu 8.04
  273. help
  274. The flash_unlock binary from mtd-utils as of git head 5ec0c10d0. This
  275. utility unlocks part or all of the flash device.
  276. config FLASH_ERASEALL
  277. bool "flash_eraseall"
  278. default n # doesn't build on Ubuntu 8.04
  279. help
  280. The flash_eraseall binary from mtd-utils as of git head c4c6a59eb.
  281. This utility is used to erase the whole MTD device.
  282. config IONICE
  283. bool "ionice"
  284. default y
  285. depends on PLATFORM_LINUX
  286. help
  287. Set/set program io scheduling class and priority
  288. Requires kernel >= 2.6.13
  289. config INOTIFYD
  290. bool "inotifyd"
  291. default n # doesn't build on Knoppix 5
  292. help
  293. Simple inotify daemon. Reports filesystem changes. Requires
  294. kernel >= 2.6.13
  295. config LAST
  296. bool "last"
  297. default y
  298. depends on FEATURE_WTMP
  299. help
  300. 'last' displays a list of the last users that logged into the system.
  301. choice
  302. prompt "Choose last implementation"
  303. depends on LAST
  304. default FEATURE_LAST_FANCY
  305. config FEATURE_LAST_SMALL
  306. bool "small"
  307. help
  308. This is a small version of last with just the basic set of
  309. features.
  310. config FEATURE_LAST_FANCY
  311. bool "huge"
  312. help
  313. 'last' displays detailed information about the last users that
  314. logged into the system (mimics sysvinit last). +900 bytes.
  315. endchoice
  316. config LESS
  317. bool "less"
  318. default y
  319. help
  320. 'less' is a pager, meaning that it displays text files. It possesses
  321. a wide array of features, and is an improvement over 'more'.
  322. config FEATURE_LESS_MAXLINES
  323. int "Max number of input lines less will try to eat"
  324. default 9999999
  325. depends on LESS
  326. config FEATURE_LESS_BRACKETS
  327. bool "Enable bracket searching"
  328. default y
  329. depends on LESS
  330. help
  331. This option adds the capability to search for matching left and right
  332. brackets, facilitating programming.
  333. config FEATURE_LESS_FLAGS
  334. bool "Enable extra flags"
  335. default y
  336. depends on LESS
  337. help
  338. The extra flags provided do the following:
  339. The -M flag enables a more sophisticated status line.
  340. The -m flag enables a simpler status line with a percentage.
  341. config FEATURE_LESS_MARKS
  342. bool "Enable marks"
  343. default y
  344. depends on LESS
  345. help
  346. Marks enable positions in a file to be stored for easy reference.
  347. config FEATURE_LESS_REGEXP
  348. bool "Enable regular expressions"
  349. default y
  350. depends on LESS
  351. help
  352. Enable regular expressions, allowing complex file searches.
  353. config FEATURE_LESS_WINCH
  354. bool "Enable automatic resizing on window size changes"
  355. default y
  356. depends on LESS
  357. help
  358. Makes less track window size changes.
  359. config FEATURE_LESS_DASHCMD
  360. bool "Enable flag changes ('-' command)"
  361. default y
  362. depends on LESS
  363. help
  364. This enables the ability to change command-line flags within
  365. less itself ('-' keyboard command).
  366. config FEATURE_LESS_LINENUMS
  367. bool "Enable dynamic switching of line numbers"
  368. default y
  369. depends on FEATURE_LESS_DASHCMD
  370. help
  371. Enables "-N" command.
  372. config HDPARM
  373. bool "hdparm"
  374. default y
  375. depends on PLATFORM_LINUX
  376. help
  377. Get/Set hard drive parameters. Primarily intended for ATA
  378. drives. Adds about 13k (or around 30k if you enable the
  379. FEATURE_HDPARM_GET_IDENTITY option)....
  380. config FEATURE_HDPARM_GET_IDENTITY
  381. bool "Support obtaining detailed information directly from drives"
  382. default y
  383. depends on HDPARM
  384. help
  385. Enables the -I and -i options to obtain detailed information
  386. directly from drives about their capabilities and supported ATA
  387. feature set. If no device name is specified, hdparm will read
  388. identify data from stdin. Enabling this option will add about 16k...
  389. config FEATURE_HDPARM_HDIO_SCAN_HWIF
  390. bool "Register an IDE interface (DANGEROUS)"
  391. default y
  392. depends on HDPARM
  393. help
  394. Enables the 'hdparm -R' option to register an IDE interface.
  395. This is dangerous stuff, so you should probably say N.
  396. config FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
  397. bool "Un-register an IDE interface (DANGEROUS)"
  398. default y
  399. depends on HDPARM
  400. help
  401. Enables the 'hdparm -U' option to un-register an IDE interface.
  402. This is dangerous stuff, so you should probably say N.
  403. config FEATURE_HDPARM_HDIO_DRIVE_RESET
  404. bool "Perform device reset (DANGEROUS)"
  405. default y
  406. depends on HDPARM
  407. help
  408. Enables the 'hdparm -w' option to perform a device reset.
  409. This is dangerous stuff, so you should probably say N.
  410. config FEATURE_HDPARM_HDIO_TRISTATE_HWIF
  411. bool "Tristate device for hotswap (DANGEROUS)"
  412. default y
  413. depends on HDPARM
  414. help
  415. Enables the 'hdparm -x' option to tristate device for hotswap,
  416. and the '-b' option to get/set bus state. This is dangerous
  417. stuff, so you should probably say N.
  418. config FEATURE_HDPARM_HDIO_GETSET_DMA
  419. bool "Get/set using_dma flag"
  420. default y
  421. depends on HDPARM
  422. help
  423. Enables the 'hdparm -d' option to get/set using_dma flag.
  424. config MAKEDEVS
  425. bool "makedevs"
  426. default y
  427. help
  428. 'makedevs' is a utility used to create a batch of devices with
  429. one command.
  430. There are two choices for command line behaviour, the interface
  431. as used by LEAF/Linux Router Project, or a device table file.
  432. 'leaf' is traditionally what busybox follows, it allows multiple
  433. devices of a particluar type to be created per command.
  434. e.g. /dev/hda[0-9]
  435. Device properties are passed as command line arguments.
  436. 'table' reads device properties from a file or stdin, allowing
  437. a batch of unrelated devices to be made with one command.
  438. User/group names are allowed as an alternative to uid/gid.
  439. choice
  440. prompt "Choose makedevs behaviour"
  441. depends on MAKEDEVS
  442. default FEATURE_MAKEDEVS_TABLE
  443. config FEATURE_MAKEDEVS_LEAF
  444. bool "leaf"
  445. config FEATURE_MAKEDEVS_TABLE
  446. bool "table"
  447. endchoice
  448. config MAN
  449. bool "man"
  450. default y
  451. help
  452. Format and display manual pages.
  453. config MICROCOM
  454. bool "microcom"
  455. default y
  456. help
  457. The poor man's minicom utility for chatting with serial port devices.
  458. config MOUNTPOINT
  459. bool "mountpoint"
  460. default y
  461. help
  462. mountpoint checks if the directory is a mountpoint.
  463. config MT
  464. bool "mt"
  465. default y
  466. help
  467. mt is used to control tape devices. You can use the mt utility
  468. to advance or rewind a tape past a specified number of archive
  469. files on the tape.
  470. config RAIDAUTORUN
  471. bool "raidautorun"
  472. default y
  473. depends on PLATFORM_LINUX
  474. help
  475. raidautorun tells the kernel md driver to
  476. search and start RAID arrays.
  477. config READAHEAD
  478. bool "readahead"
  479. default y
  480. depends on LFS && PLATFORM_LINUX
  481. help
  482. Preload the files listed on the command line into RAM cache so that
  483. subsequent reads on these files will not block on disk I/O.
  484. This applet just calls the readahead(2) system call on each file.
  485. It is mainly useful in system startup scripts to preload files
  486. or executables before they are used. When used at the right time
  487. (in particular when a CPU bound process is running) it can
  488. significantly speed up system startup.
  489. As readahead(2) blocks until each file has been read, it is best to
  490. run this applet as a background job.
  491. config RFKILL
  492. bool "rfkill"
  493. default n # doesn't build on Ubuntu 9.04
  494. depends on PLATFORM_LINUX
  495. help
  496. Enable/disable wireless devices.
  497. rfkill list : list all wireless devices
  498. rfkill list bluetooth : list all bluetooth devices
  499. rfkill list 1 : list device corresponding to the given index
  500. rfkill block|unblock wlan : block/unblock all wlan(wifi) devices
  501. config RUNLEVEL
  502. bool "runlevel"
  503. default y
  504. help
  505. find the current and previous system runlevel.
  506. This applet uses utmp but does not rely on busybox supporing
  507. utmp on purpose. It is used by e.g. emdebian via /etc/init.d/rc.
  508. config RX
  509. bool "rx"
  510. default y
  511. depends on PLATFORM_LINUX
  512. help
  513. Receive files using the Xmodem protocol.
  514. config SETSID
  515. bool "setsid"
  516. default y
  517. help
  518. setsid runs a program in a new session
  519. config STRINGS
  520. bool "strings"
  521. default y
  522. help
  523. strings prints the printable character sequences for each file
  524. specified.
  525. config TASKSET
  526. bool "taskset"
  527. default n # doesn't build on some non-x86 targets (m68k)
  528. help
  529. Retrieve or set a processes's CPU affinity.
  530. This requires sched_{g,s}etaffinity support in your libc.
  531. config FEATURE_TASKSET_FANCY
  532. bool "Fancy output"
  533. default y
  534. depends on TASKSET
  535. help
  536. Add code for fancy output. This merely silences a compiler-warning
  537. and adds about 135 Bytes. May be needed for machines with alot
  538. of CPUs.
  539. config TIME
  540. bool "time"
  541. default y
  542. help
  543. The time command runs the specified program with the given arguments.
  544. When the command finishes, time writes a message to standard output
  545. giving timing statistics about this program run.
  546. config TIMEOUT
  547. bool "timeout"
  548. default y
  549. help
  550. Runs a program and watches it. If it does not terminate in
  551. specified number of seconds, it is sent a signal.
  552. config TTYSIZE
  553. bool "ttysize"
  554. default y
  555. help
  556. A replacement for "stty size". Unlike stty, can report only width,
  557. only height, or both, in any order. It also does not complain on
  558. error, but returns default 80x24.
  559. Usage in shell scripts: width=`ttysize w`.
  560. config VOLNAME
  561. bool "volname"
  562. default y
  563. help
  564. Prints a CD-ROM volume name.
  565. config WALL
  566. bool "wall"
  567. default y
  568. help
  569. Write a message to all users that are logged in.
  570. config WATCHDOG
  571. bool "watchdog"
  572. default y
  573. depends on PLATFORM_LINUX
  574. help
  575. The watchdog utility is used with hardware or software watchdog
  576. device drivers. It opens the specified watchdog device special file
  577. and periodically writes a magic character to the device. If the
  578. watchdog applet ever fails to write the magic character within a
  579. certain amount of time, the watchdog device assumes the system has
  580. hung, and will cause the hardware to reboot.
  581. endmenu