Rob Landley | 5bcc7ea | 2014-09-20 13:20:17 -0500 | [diff] [blame] | 1 | mainmenu "Toybox Configuration" |
landley | 5257cf5 | 2006-10-31 23:30:06 -0500 | [diff] [blame] | 2 | |
Rob Landley | 76ec485 | 2012-10-21 17:57:23 -0500 | [diff] [blame] | 3 | |
| 4 | source generated/Config.probed |
| 5 | source generated/Config.in |
| 6 | |
| 7 | comment "" |
| 8 | |
Rob Landley | 3a9241a | 2012-08-25 14:25:22 -0500 | [diff] [blame] | 9 | menu "Toybox global settings" |
landley | 5257cf5 | 2006-10-31 23:30:06 -0500 | [diff] [blame] | 10 | |
Rob Landley | a8bee46 | 2014-08-18 19:10:45 -0500 | [diff] [blame] | 11 | # This entry controls the multiplexer, disabled for single command builds |
Rob Landley | 2896480 | 2008-01-19 17:08:39 -0600 | [diff] [blame] | 12 | config TOYBOX |
| 13 | bool |
Rob Landley | d04dc1f | 2013-08-30 01:53:31 -0500 | [diff] [blame] | 14 | default y |
Rob Landley | d06c58d | 2007-10-11 15:36:36 -0500 | [diff] [blame] | 15 | help |
Rob Landley | 0a40390 | 2015-04-07 14:57:55 -0500 | [diff] [blame] | 16 | usage: toybox [--long | --version | [command] [arguments...]] |
Rob Landley | d06c58d | 2007-10-11 15:36:36 -0500 | [diff] [blame] | 17 | |
Rob Landley | 26c0045 | 2013-04-14 12:35:25 -0500 | [diff] [blame] | 18 | With no arguments, shows available commands. First argument is |
Rob Landley | 2896480 | 2008-01-19 17:08:39 -0600 | [diff] [blame] | 19 | name of a command to run, followed by any arguments to that command. |
Rob Landley | d06c58d | 2007-10-11 15:36:36 -0500 | [diff] [blame] | 20 | |
Rob Landley | 8431692 | 2014-06-10 21:57:05 -0500 | [diff] [blame] | 21 | --long Show path to each command |
Rob Landley | 0a40390 | 2015-04-07 14:57:55 -0500 | [diff] [blame] | 22 | --version Show toybox version |
Rob Landley | 8431692 | 2014-06-10 21:57:05 -0500 | [diff] [blame] | 23 | |
| 24 | To install command symlinks, try: |
| 25 | for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done |
| 26 | |
Rob Landley | e0377fb | 2010-01-05 12:17:05 -0600 | [diff] [blame] | 27 | config TOYBOX_SUID |
| 28 | bool "SUID support" |
| 29 | default y |
| 30 | help |
Rob Landley | 26c0045 | 2013-04-14 12:35:25 -0500 | [diff] [blame] | 31 | Support for the Set User ID bit, to install toybox suid root and drop |
| 32 | permissions for commands which do not require root access. To use |
| 33 | this change ownership of the file to the root user and set the suid |
| 34 | bit in the file permissions: |
| 35 | |
| 36 | chown root:root toybox; chmod +s toybox |
Rob Landley | e0377fb | 2010-01-05 12:17:05 -0600 | [diff] [blame] | 37 | |
Rob Landley | 08f51b5 | 2015-04-15 20:53:00 -0500 | [diff] [blame] | 38 | choice |
| 39 | prompt "Security Blanket" |
| 40 | default TOYBOX_LSM_NONE |
| 41 | help |
| 42 | Select a Linux Security Module to complicate your system |
| 43 | until you can't find holes in it. |
| 44 | |
| 45 | config TOYBOX_LSM_NONE |
| 46 | bool "None" |
| 47 | help |
| 48 | Don't try to achieve "watertight" by plugging the holes in a |
| 49 | collander, instead use conventional unix security (and possibly |
| 50 | Linux Containers) for a simple straightforward system. |
| 51 | |
Elliott Hughes | 7e2af1c | 2015-01-16 13:36:53 -0600 | [diff] [blame] | 52 | config TOYBOX_SELINUX |
Rob Landley | 08f51b5 | 2015-04-15 20:53:00 -0500 | [diff] [blame] | 53 | bool "SELinux support" |
| 54 | help |
| 55 | Include SELinux options in commands such as ls, and add |
| 56 | SELinux-specific commands such as chcon to the Android menu. |
| 57 | |
| 58 | config TOYBOX_SMACK |
| 59 | bool "SMACK support" |
| 60 | help |
| 61 | Include SMACK options in commands like ls for systems like Tizen. |
| 62 | |
| 63 | endchoice |
Elliott Hughes | 7e2af1c | 2015-01-16 13:36:53 -0600 | [diff] [blame] | 64 | |
Rob Landley | f01503d | 2012-02-02 07:26:39 -0600 | [diff] [blame] | 65 | config TOYBOX_FLOAT |
| 66 | bool "Floating point support" |
| 67 | default y |
| 68 | help |
| 69 | Include floating point support infrastructure and commands that |
| 70 | require it. |
| 71 | |
Rob Landley | 36ffc5a | 2013-04-14 21:43:22 -0500 | [diff] [blame] | 72 | config TOYBOX_HELP |
Rob Landley | d683b17 | 2013-06-16 20:00:11 -0500 | [diff] [blame] | 73 | bool "Help messages" |
Rob Landley | 36ffc5a | 2013-04-14 21:43:22 -0500 | [diff] [blame] | 74 | default y |
| 75 | help |
| 76 | Include help text for each command. |
| 77 | |
Rob Landley | 953722e | 2013-06-30 15:58:24 -0500 | [diff] [blame] | 78 | config TOYBOX_HELP_DASHDASH |
| 79 | bool "--help" |
| 80 | default y |
| 81 | depends on TOYBOX_HELP |
| 82 | help |
| 83 | Support --help argument in all commands, even ones with a NULL |
| 84 | optstring. Produces the same output as "help command". |
| 85 | |
Felix Janda | 250e005 | 2012-11-21 20:38:29 +0100 | [diff] [blame] | 86 | config TOYBOX_I18N |
Rob Landley | 26c0045 | 2013-04-14 12:35:25 -0500 | [diff] [blame] | 87 | bool "Internationalization support" |
Felix Janda | 250e005 | 2012-11-21 20:38:29 +0100 | [diff] [blame] | 88 | default y |
| 89 | help |
Rob Landley | 26c0045 | 2013-04-14 12:35:25 -0500 | [diff] [blame] | 90 | Support for UTF-8 character sets, and some locale support. |
Felix Janda | 250e005 | 2012-11-21 20:38:29 +0100 | [diff] [blame] | 91 | |
Rob Landley | de05a70 | 2007-01-31 14:37:01 -0500 | [diff] [blame] | 92 | config TOYBOX_FREE |
landley | 5257cf5 | 2006-10-31 23:30:06 -0500 | [diff] [blame] | 93 | bool "Free memory unnecessarily" |
| 94 | default n |
| 95 | help |
| 96 | When a program exits, the operating system will clean up after it |
Rob Landley | 26c0045 | 2013-04-14 12:35:25 -0500 | [diff] [blame] | 97 | (free memory, close files, etc). To save size, toybox usually relies |
| 98 | on this behavior. If you're running toybox under a debugger or |
landley | 5257cf5 | 2006-10-31 23:30:06 -0500 | [diff] [blame] | 99 | without a real OS (ala newlib+libgloss), enable this to make toybox |
| 100 | clean up after itself. |
| 101 | |
Rob Landley | 977e48e | 2014-10-20 19:52:29 -0500 | [diff] [blame] | 102 | config TOYBOX_NORECURSE |
| 103 | bool "Disable recursive execution" |
| 104 | default n |
| 105 | help |
| 106 | When one toybox command calls another, usually it just calls the new |
| 107 | command's main() function rather than searching the $PATH and calling |
| 108 | exec on another file (which is much slower). |
| 109 | |
| 110 | This disables that optimization, so toybox will run external commands |
| 111 | even when it has a built-in version of that command. This requires |
| 112 | toybox symlinks to be installed in the $PATH, or re-invoking the |
| 113 | "toybox" multiplexer command by name. |
| 114 | |
Rob Landley | de05a70 | 2007-01-31 14:37:01 -0500 | [diff] [blame] | 115 | config TOYBOX_DEBUG |
Rob Landley | 8324b89 | 2006-11-19 02:49:22 -0500 | [diff] [blame] | 116 | bool "Debugging tests" |
| 117 | default n |
| 118 | help |
Rob Landley | a8bee46 | 2014-08-18 19:10:45 -0500 | [diff] [blame] | 119 | Enable extra checks for debugging purposes. All of them catch |
| 120 | things that can only go wrong at development time, not runtime. |
| 121 | |
| 122 | config TOYBOX_UID_SYS |
| 123 | int "First system UID" |
| 124 | default 100 |
| 125 | help |
| 126 | When commands like useradd/groupadd allocate system IDs, start here. |
| 127 | |
| 128 | config TOYBOX_UID_USR |
| 129 | int "First user UID" |
| 130 | default 500 |
| 131 | help |
| 132 | When commands like useradd/groupadd allocate user IDs, start here. |
landley | 5257cf5 | 2006-10-31 23:30:06 -0500 | [diff] [blame] | 133 | endmenu |