3
0

Config.src 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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. select 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. select 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. help
  151. Crontab manipulates the crontab for a particular user. Only
  152. the superuser may specify a different user and/or crontab directory.
  153. Note that Busybox binary must be setuid root for this applet to
  154. work properly.
  155. config DC
  156. bool "dc"
  157. default y
  158. help
  159. Dc is a reverse-polish desk calculator which supports unlimited
  160. precision arithmetic.
  161. config FEATURE_DC_LIBM
  162. bool "Enable power and exp functions (requires libm)"
  163. default y
  164. depends on DC
  165. help
  166. Enable power and exp functions.
  167. NOTE: This will require libm to be present for linking.
  168. config DEVFSD
  169. bool "devfsd (obsolete)"
  170. default n
  171. select PLATFORM_LINUX
  172. select FEATURE_SYSLOG
  173. help
  174. This is deprecated and should NOT be used anymore.
  175. Use linux >= 2.6 (optionally with hotplug) and mdev instead!
  176. See docs/mdev.txt for detailed instructions on how to use mdev
  177. instead.
  178. Provides compatibility with old device names on a devfs systems.
  179. You should set it to true if you have devfs enabled.
  180. The following keywords in devsfd.conf are supported:
  181. "CLEAR_CONFIG", "INCLUDE", "OPTIONAL_INCLUDE", "RESTORE",
  182. "PERMISSIONS", "EXECUTE", "COPY", "IGNORE",
  183. "MKOLDCOMPAT", "MKNEWCOMPAT","RMOLDCOMPAT", "RMNEWCOMPAT".
  184. But only if they are written UPPERCASE!!!!!!!!
  185. config DEVFSD_MODLOAD
  186. bool "Adds support for MODLOAD keyword in devsfd.conf"
  187. default y
  188. depends on DEVFSD
  189. help
  190. This actually doesn't work with busybox modutils but needs
  191. the external modutils.
  192. config DEVFSD_FG_NP
  193. bool "Enables the -fg and -np options"
  194. default y
  195. depends on DEVFSD
  196. help
  197. -fg Run the daemon in the foreground.
  198. -np Exit after parsing the configuration file.
  199. Do not poll for events.
  200. config DEVFSD_VERBOSE
  201. bool "Increases logging (and size)"
  202. default y
  203. depends on DEVFSD
  204. help
  205. Increases logging to stderr or syslog.
  206. config FEATURE_DEVFS
  207. bool "Use devfs names for all devices (obsolete)"
  208. default n
  209. select PLATFORM_LINUX
  210. help
  211. This is obsolete and should NOT be used anymore.
  212. Use linux >= 2.6 (optionally with hotplug) and mdev instead!
  213. For legacy systems -- if there is no way around devfsd -- this
  214. tells busybox to look for names like /dev/loop/0 instead of
  215. /dev/loop0. If your /dev directory has normal names instead of
  216. devfs names, you don't want this.
  217. config DEVMEM
  218. bool "devmem"
  219. default y
  220. help
  221. devmem is a small program that reads and writes from physical
  222. memory using /dev/mem.
  223. config EJECT
  224. bool "eject"
  225. default y
  226. select PLATFORM_LINUX
  227. help
  228. Used to eject cdroms. (defaults to /dev/cdrom)
  229. config FEATURE_EJECT_SCSI
  230. bool "SCSI support"
  231. default y
  232. depends on EJECT
  233. help
  234. Add the -s option to eject, this allows to eject SCSI-Devices and
  235. usb-storage devices.
  236. config FBSPLASH
  237. bool "fbsplash"
  238. default y
  239. select PLATFORM_LINUX
  240. help
  241. Shows splash image and progress bar on framebuffer device.
  242. Can be used during boot phase of an embedded device. ~2kb.
  243. Usage:
  244. - use kernel option 'vga=xxx' or otherwise enable fb device.
  245. - put somewhere fbsplash.cfg file and an image in .ppm format.
  246. - $ setsid fbsplash [params] &
  247. -c: hide cursor
  248. -d /dev/fbN: framebuffer device (if not /dev/fb0)
  249. -s path_to_image_file (can be "-" for stdin)
  250. -i path_to_cfg_file (can be "-" for stdin)
  251. -f path_to_fifo (can be "-" for stdin)
  252. - if you want to run it only in presence of kernel parameter:
  253. grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] &
  254. - commands for fifo:
  255. "NN" (ASCII decimal number) - percentage to show on progress bar
  256. "exit" - well you guessed it
  257. config FLASHCP
  258. bool "flashcp"
  259. default n # doesn't build on Ubuntu 8.04
  260. help
  261. The flashcp binary, inspired by mtd-utils as of git head 5eceb74f7.
  262. This utility is used to copy images into a MTD device.
  263. config FLASH_LOCK
  264. bool "flash_lock"
  265. default n # doesn't build on Ubuntu 8.04
  266. help
  267. The flash_lock binary from mtd-utils as of git head 5ec0c10d0. This
  268. utility locks part or all of the flash device.
  269. config FLASH_UNLOCK
  270. bool "flash_unlock"
  271. default n # doesn't build on Ubuntu 8.04
  272. help
  273. The flash_unlock binary from mtd-utils as of git head 5ec0c10d0. This
  274. utility unlocks part or all of the flash device.
  275. config FLASH_ERASEALL
  276. bool "flash_eraseall"
  277. default n # doesn't build on Ubuntu 8.04
  278. help
  279. The flash_eraseall binary from mtd-utils as of git head c4c6a59eb.
  280. This utility is used to erase the whole MTD device.
  281. config IONICE
  282. bool "ionice"
  283. default y
  284. select PLATFORM_LINUX
  285. help
  286. Set/set program io scheduling class and priority
  287. Requires kernel >= 2.6.13
  288. config INOTIFYD
  289. bool "inotifyd"
  290. default n # doesn't build on Knoppix 5
  291. help
  292. Simple inotify daemon. Reports filesystem changes. Requires
  293. kernel >= 2.6.13
  294. config LAST
  295. bool "last"
  296. default y
  297. depends on FEATURE_WTMP
  298. help
  299. 'last' displays a list of the last users that logged into the system.
  300. choice
  301. prompt "Choose last implementation"
  302. depends on LAST
  303. default FEATURE_LAST_FANCY
  304. config FEATURE_LAST_SMALL
  305. bool "small"
  306. help
  307. This is a small version of last with just the basic set of
  308. features.
  309. config FEATURE_LAST_FANCY
  310. bool "huge"
  311. help
  312. 'last' displays detailed information about the last users that
  313. logged into the system (mimics sysvinit last). +900 bytes.
  314. endchoice
  315. config HDPARM
  316. bool "hdparm"
  317. default y
  318. select PLATFORM_LINUX
  319. help
  320. Get/Set hard drive parameters. Primarily intended for ATA
  321. drives. Adds about 13k (or around 30k if you enable the
  322. FEATURE_HDPARM_GET_IDENTITY option)....
  323. config FEATURE_HDPARM_GET_IDENTITY
  324. bool "Support obtaining detailed information directly from drives"
  325. default y
  326. depends on HDPARM
  327. help
  328. Enables the -I and -i options to obtain detailed information
  329. directly from drives about their capabilities and supported ATA
  330. feature set. If no device name is specified, hdparm will read
  331. identify data from stdin. Enabling this option will add about 16k...
  332. config FEATURE_HDPARM_HDIO_SCAN_HWIF
  333. bool "Register an IDE interface (DANGEROUS)"
  334. default y
  335. depends on HDPARM
  336. help
  337. Enables the 'hdparm -R' option to register an IDE interface.
  338. This is dangerous stuff, so you should probably say N.
  339. config FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
  340. bool "Un-register an IDE interface (DANGEROUS)"
  341. default y
  342. depends on HDPARM
  343. help
  344. Enables the 'hdparm -U' option to un-register an IDE interface.
  345. This is dangerous stuff, so you should probably say N.
  346. config FEATURE_HDPARM_HDIO_DRIVE_RESET
  347. bool "Perform device reset (DANGEROUS)"
  348. default y
  349. depends on HDPARM
  350. help
  351. Enables the 'hdparm -w' option to perform a device reset.
  352. This is dangerous stuff, so you should probably say N.
  353. config FEATURE_HDPARM_HDIO_TRISTATE_HWIF
  354. bool "Tristate device for hotswap (DANGEROUS)"
  355. default y
  356. depends on HDPARM
  357. help
  358. Enables the 'hdparm -x' option to tristate device for hotswap,
  359. and the '-b' option to get/set bus state. This is dangerous
  360. stuff, so you should probably say N.
  361. config FEATURE_HDPARM_HDIO_GETSET_DMA
  362. bool "Get/set using_dma flag"
  363. default y
  364. depends on HDPARM
  365. help
  366. Enables the 'hdparm -d' option to get/set using_dma flag.
  367. config MAKEDEVS
  368. bool "makedevs"
  369. default y
  370. help
  371. 'makedevs' is a utility used to create a batch of devices with
  372. one command.
  373. There are two choices for command line behaviour, the interface
  374. as used by LEAF/Linux Router Project, or a device table file.
  375. 'leaf' is traditionally what busybox follows, it allows multiple
  376. devices of a particluar type to be created per command.
  377. e.g. /dev/hda[0-9]
  378. Device properties are passed as command line arguments.
  379. 'table' reads device properties from a file or stdin, allowing
  380. a batch of unrelated devices to be made with one command.
  381. User/group names are allowed as an alternative to uid/gid.
  382. choice
  383. prompt "Choose makedevs behaviour"
  384. depends on MAKEDEVS
  385. default FEATURE_MAKEDEVS_TABLE
  386. config FEATURE_MAKEDEVS_LEAF
  387. bool "leaf"
  388. config FEATURE_MAKEDEVS_TABLE
  389. bool "table"
  390. endchoice
  391. config MAN
  392. bool "man"
  393. default y
  394. help
  395. Format and display manual pages.
  396. config MICROCOM
  397. bool "microcom"
  398. default y
  399. help
  400. The poor man's minicom utility for chatting with serial port devices.
  401. config MOUNTPOINT
  402. bool "mountpoint"
  403. default y
  404. help
  405. mountpoint checks if the directory is a mountpoint.
  406. config MT
  407. bool "mt"
  408. default y
  409. help
  410. mt is used to control tape devices. You can use the mt utility
  411. to advance or rewind a tape past a specified number of archive
  412. files on the tape.
  413. config RAIDAUTORUN
  414. bool "raidautorun"
  415. default y
  416. select PLATFORM_LINUX
  417. help
  418. raidautorun tells the kernel md driver to
  419. search and start RAID arrays.
  420. config READAHEAD
  421. bool "readahead"
  422. default y
  423. depends on LFS
  424. select PLATFORM_LINUX
  425. help
  426. Preload the files listed on the command line into RAM cache so that
  427. subsequent reads on these files will not block on disk I/O.
  428. This applet just calls the readahead(2) system call on each file.
  429. It is mainly useful in system startup scripts to preload files
  430. or executables before they are used. When used at the right time
  431. (in particular when a CPU bound process is running) it can
  432. significantly speed up system startup.
  433. As readahead(2) blocks until each file has been read, it is best to
  434. run this applet as a background job.
  435. config RUNLEVEL
  436. bool "runlevel"
  437. default y
  438. depends on FEATURE_UTMP
  439. help
  440. find the current and previous system runlevel.
  441. This applet uses utmp but does not rely on busybox supporing
  442. utmp on purpose. It is used by e.g. emdebian via /etc/init.d/rc.
  443. config RX
  444. bool "rx"
  445. default y
  446. select PLATFORM_LINUX
  447. help
  448. Receive files using the Xmodem protocol.
  449. config SETSID
  450. bool "setsid"
  451. default y
  452. help
  453. setsid runs a program in a new session
  454. config STRINGS
  455. bool "strings"
  456. default y
  457. help
  458. strings prints the printable character sequences for each file
  459. specified.
  460. config TASKSET
  461. bool "taskset"
  462. default n # doesn't build on some non-x86 targets (m68k)
  463. help
  464. Retrieve or set a processes's CPU affinity.
  465. This requires sched_{g,s}etaffinity support in your libc.
  466. config FEATURE_TASKSET_FANCY
  467. bool "Fancy output"
  468. default y
  469. depends on TASKSET
  470. help
  471. Add code for fancy output. This merely silences a compiler-warning
  472. and adds about 135 Bytes. May be needed for machines with alot
  473. of CPUs.
  474. config TIME
  475. bool "time"
  476. default y
  477. help
  478. The time command runs the specified program with the given arguments.
  479. When the command finishes, time writes a message to standard output
  480. giving timing statistics about this program run.
  481. config TIMEOUT
  482. bool "timeout"
  483. default y
  484. help
  485. Runs a program and watches it. If it does not terminate in
  486. specified number of seconds, it is sent a signal.
  487. config TTYSIZE
  488. bool "ttysize"
  489. default y
  490. help
  491. A replacement for "stty size". Unlike stty, can report only width,
  492. only height, or both, in any order. It also does not complain on
  493. error, but returns default 80x24.
  494. Usage in shell scripts: width=`ttysize w`.
  495. config VOLNAME
  496. bool "volname"
  497. default y
  498. help
  499. Prints a CD-ROM volume name.
  500. config WATCHDOG
  501. bool "watchdog"
  502. default y
  503. select PLATFORM_LINUX
  504. help
  505. The watchdog utility is used with hardware or software watchdog
  506. device drivers. It opens the specified watchdog device special file
  507. and periodically writes a magic character to the device. If the
  508. watchdog applet ever fails to write the magic character within a
  509. certain amount of time, the watchdog device assumes the system has
  510. hung, and will cause the hardware to reboot.
  511. endmenu