Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
| 6 | menu "Finding Utilities" |
| 7 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 8 | config FIND |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 9 | bool "find" |
| 10 | default n |
| 11 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 12 | find is used to search your system to find specified files. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 13 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 14 | config FEATURE_FIND_PRINT0 |
Paul Fox | d738429 | 2006-05-12 14:47:20 +0000 | [diff] [blame] | 15 | bool "Enable -print0 option" |
| 16 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 17 | depends on FIND |
Paul Fox | d738429 | 2006-05-12 14:47:20 +0000 | [diff] [blame] | 18 | help |
| 19 | Causes output names to be separated by a null character |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 20 | rather than a newline. This allows names that contain |
Paul Fox | d738429 | 2006-05-12 14:47:20 +0000 | [diff] [blame] | 21 | newlines and other whitespace to be more easily |
| 22 | interpreted by other programs. |
| 23 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 24 | config FEATURE_FIND_MTIME |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 25 | bool "Enable modified time matching (-mtime option)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 26 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 27 | depends on FIND |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 28 | help |
Eric Andersen | fb0c6af | 2003-07-14 19:18:43 +0000 | [diff] [blame] | 29 | Allow searching based on the modification time of |
Paul Fox | 72d1a23 | 2006-01-13 21:05:41 +0000 | [diff] [blame] | 30 | files, in days. |
| 31 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 32 | config FEATURE_FIND_MMIN |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 33 | bool "Enable modified time matching (-mmin option)" |
Paul Fox | 72d1a23 | 2006-01-13 21:05:41 +0000 | [diff] [blame] | 34 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 35 | depends on FIND |
Paul Fox | 72d1a23 | 2006-01-13 21:05:41 +0000 | [diff] [blame] | 36 | help |
| 37 | Allow searching based on the modification time of |
| 38 | files, in minutes. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 39 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 40 | config FEATURE_FIND_PERM |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 41 | bool "Enable permissions matching (-perm option)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 42 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 43 | depends on FIND |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 44 | help |
Eric Andersen | fb0c6af | 2003-07-14 19:18:43 +0000 | [diff] [blame] | 45 | Enable searching based on file permissions. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 46 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 47 | config FEATURE_FIND_TYPE |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 48 | bool "Enable filetype matching (-type option)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 49 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 50 | depends on FIND |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 51 | help |
Eric Andersen | fb0c6af | 2003-07-14 19:18:43 +0000 | [diff] [blame] | 52 | Enable searching based on file type (file, |
| 53 | directory, socket, device, etc.). |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 54 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 55 | config FEATURE_FIND_XDEV |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 56 | bool "Enable 'stay in filesystem' option (-xdev)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 57 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 58 | depends on FIND |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 59 | help |
Denis Vlasenko | b941129 | 2007-06-15 23:43:11 +0000 | [diff] [blame] | 60 | This option allows find to restrict searches to a single filesystem. |
| 61 | |
| 62 | config FEATURE_FIND_MAXDEPTH |
| 63 | bool "Enable -maxdepth N option" |
| 64 | default y |
| 65 | depends on FIND |
| 66 | help |
| 67 | This option enables -maxdepth N option. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 68 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 69 | config FEATURE_FIND_NEWER |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 70 | bool "Enable -newer option for comparing file mtimes" |
Eric Andersen | 97d86f2 | 2003-01-23 05:27:42 +0000 | [diff] [blame] | 71 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 72 | depends on FIND |
Eric Andersen | 97d86f2 | 2003-01-23 05:27:42 +0000 | [diff] [blame] | 73 | help |
| 74 | Support the 'find -newer' option for finding any files which have |
| 75 | a modified time that is more recent than the specified FILE. |
| 76 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 77 | config FEATURE_FIND_INUM |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 78 | bool "Enable inode number matching (-inum option)" |
Eric Andersen | 97d86f2 | 2003-01-23 05:27:42 +0000 | [diff] [blame] | 79 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 80 | depends on FIND |
Eric Andersen | 97d86f2 | 2003-01-23 05:27:42 +0000 | [diff] [blame] | 81 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 82 | Support the 'find -inum' option for searching by inode number. |
Eric Andersen | 97d86f2 | 2003-01-23 05:27:42 +0000 | [diff] [blame] | 83 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 84 | config FEATURE_FIND_EXEC |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 85 | bool "Enable -exec option allowing execution of commands" |
Rob Landley | 5d3a0e8 | 2005-10-04 03:34:39 +0000 | [diff] [blame] | 86 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 87 | depends on FIND |
Rob Landley | 5d3a0e8 | 2005-10-04 03:34:39 +0000 | [diff] [blame] | 88 | help |
| 89 | Support the 'find -exec' option for executing commands based upon |
| 90 | the files matched. |
| 91 | |
Denis Vlasenko | a100707 | 2007-02-02 01:17:52 +0000 | [diff] [blame] | 92 | config FEATURE_FIND_USER |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 93 | bool "Enable username/uid matching (-user option)" |
Denis Vlasenko | a100707 | 2007-02-02 01:17:52 +0000 | [diff] [blame] | 94 | default y |
| 95 | depends on FIND |
| 96 | help |
| 97 | Support the 'find -user' option for searching by username or uid. |
| 98 | |
Denis Vlasenko | 56fce00 | 2007-04-04 23:41:35 +0000 | [diff] [blame] | 99 | config FEATURE_FIND_GROUP |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 100 | bool "Enable group/gid matching (-group option)" |
Denis Vlasenko | 56fce00 | 2007-04-04 23:41:35 +0000 | [diff] [blame] | 101 | default y |
| 102 | depends on FIND |
| 103 | help |
| 104 | Support the 'find -group' option for searching by group name or gid. |
| 105 | |
Denis Vlasenko | cf787cf | 2007-02-04 17:11:25 +0000 | [diff] [blame] | 106 | config FEATURE_FIND_NOT |
| 107 | bool "Enable the 'not' (!) operator" |
| 108 | default y |
| 109 | depends on FIND |
| 110 | help |
Denis Vlasenko | 56fce00 | 2007-04-04 23:41:35 +0000 | [diff] [blame] | 111 | Support the '!' operator to invert the test results. |
| 112 | If 'Enable full-blown desktop' is enabled, then will also support |
| 113 | the non-POSIX notation '-not'. |
| 114 | |
| 115 | config FEATURE_FIND_DEPTH |
| 116 | bool "Enable the -depth option" |
| 117 | default y |
| 118 | depends on FIND |
| 119 | help |
| 120 | Process each directory's contents before the directory itself. |
| 121 | |
| 122 | config FEATURE_FIND_PAREN |
| 123 | bool "Enable parens in options" |
| 124 | default y |
| 125 | depends on FIND |
| 126 | help |
| 127 | Enable usage of parens '(' to specify logical order of arguments. |
| 128 | |
| 129 | config FEATURE_FIND_SIZE |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 130 | bool "Enable -size option allowing matching for file size" |
Denis Vlasenko | 56fce00 | 2007-04-04 23:41:35 +0000 | [diff] [blame] | 131 | default y |
| 132 | depends on FIND |
| 133 | help |
| 134 | Support the 'find -size' option for searching by file size. |
| 135 | |
| 136 | config FEATURE_FIND_PRUNE |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 137 | bool "Enable -prune option allowing to exclude subdirectories" |
Denis Vlasenko | 56fce00 | 2007-04-04 23:41:35 +0000 | [diff] [blame] | 138 | default y |
| 139 | depends on FIND |
| 140 | help |
| 141 | If the file is a directory, dont descend into it. Useful for |
| 142 | exclusion .svn and CVS directories. |
Denis Vlasenko | cf787cf | 2007-02-04 17:11:25 +0000 | [diff] [blame] | 143 | |
Denis Vlasenko | 62f0479 | 2007-04-13 10:00:12 +0000 | [diff] [blame] | 144 | config FEATURE_FIND_DELETE |
| 145 | bool "Enable -delete option allowing to delete files" |
| 146 | default n |
| 147 | depends on FIND && FEATURE_FIND_DEPTH |
| 148 | help |
Bernhard Reutner-Fischer | d498850 | 2008-10-27 21:30:39 +0000 | [diff] [blame] | 149 | Support the 'find -delete' option for deleting files and directories. |
Denis Vlasenko | 62f0479 | 2007-04-13 10:00:12 +0000 | [diff] [blame] | 150 | WARNING: This option can do much harm if used wrong. Busybox will not |
| 151 | try to protect the user from doing stupid things. Use with care. |
| 152 | |
| 153 | config FEATURE_FIND_PATH |
| 154 | bool "Enable -path option allowing to match pathname patterns" |
| 155 | default y |
| 156 | depends on FIND |
| 157 | help |
Denis Vlasenko | b941129 | 2007-06-15 23:43:11 +0000 | [diff] [blame] | 158 | The -path option matches whole pathname instead of just filename. |
| 159 | |
| 160 | config FEATURE_FIND_REGEX |
| 161 | bool "Enable -regex: match pathname to regex" |
| 162 | default y |
| 163 | depends on FIND |
| 164 | help |
| 165 | The -regex option matches whole pathname against regular expression. |
Denis Vlasenko | 62f0479 | 2007-04-13 10:00:12 +0000 | [diff] [blame] | 166 | |
Denis Vlasenko | a19faf8 | 2007-06-19 22:22:57 +0000 | [diff] [blame] | 167 | config FEATURE_FIND_CONTEXT |
Denis Vlasenko | ea9f7a6 | 2008-05-28 12:00:59 +0000 | [diff] [blame] | 168 | bool "Enable -context option for matching security context" |
Denis Vlasenko | a19faf8 | 2007-06-19 22:22:57 +0000 | [diff] [blame] | 169 | default n |
| 170 | depends on FIND && SELINUX |
| 171 | help |
| 172 | Support the 'find -context' option for matching security context. |
| 173 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 174 | config GREP |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 175 | bool "grep" |
| 176 | default n |
| 177 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 178 | grep is used to search files for a specified pattern. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 179 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 180 | config FEATURE_GREP_EGREP_ALIAS |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 181 | bool "Support extended regular expressions (egrep & grep -E)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 182 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 183 | depends on GREP |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 184 | help |
Bernhard Reutner-Fischer | 3e8669f | 2008-07-22 18:27:53 +0000 | [diff] [blame] | 185 | Enabled support for extended regular expressions. Extended |
Eric Andersen | fb0c6af | 2003-07-14 19:18:43 +0000 | [diff] [blame] | 186 | regular expressions allow for alternation (foo|bar), grouping, |
| 187 | and various repetition operators. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 188 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 189 | config FEATURE_GREP_FGREP_ALIAS |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 190 | bool "Alias fgrep to grep -F" |
Glenn L McGrath | c91ce57 | 2003-04-27 02:43:54 +0000 | [diff] [blame] | 191 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 192 | depends on GREP |
Glenn L McGrath | c91ce57 | 2003-04-27 02:43:54 +0000 | [diff] [blame] | 193 | help |
Mike Frysinger | 15ca586 | 2005-07-31 22:41:05 +0000 | [diff] [blame] | 194 | fgrep sees the search pattern as a normal string rather than |
Glenn L McGrath | c91ce57 | 2003-04-27 02:43:54 +0000 | [diff] [blame] | 195 | regular expressions. |
Mike Frysinger | 15ca586 | 2005-07-31 22:41:05 +0000 | [diff] [blame] | 196 | grep -F is always builtin, this just creates the fgrep alias. |
Glenn L McGrath | c91ce57 | 2003-04-27 02:43:54 +0000 | [diff] [blame] | 197 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 198 | config FEATURE_GREP_CONTEXT |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 199 | bool "Enable before and after context flags (-A, -B and -C)" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 200 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 201 | depends on GREP |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 202 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 203 | Print the specified number of leading (-B) and/or trailing (-A) |
| 204 | context surrounding our matching lines. |
| 205 | Print the specified number of context lines (-C). |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 206 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 207 | config XARGS |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 208 | bool "xargs" |
| 209 | default n |
| 210 | help |
Eric Andersen | 65e20a3 | 2003-07-05 07:52:35 +0000 | [diff] [blame] | 211 | xargs is used to execute a specified command on |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 212 | every item from standard input. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 213 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 214 | config FEATURE_XARGS_SUPPORT_CONFIRMATION |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 215 | bool "Enable prompt and confirmation option -p" |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 216 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 217 | depends on XARGS |
Glenn L McGrath | 9982596 | 2003-10-09 11:06:45 +0000 | [diff] [blame] | 218 | help |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 219 | Support prompt the user about whether to run each command |
| 220 | line and read a line from the terminal. |
| 221 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 222 | config FEATURE_XARGS_SUPPORT_QUOTES |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 223 | bool "Enable support single and double quotes and backslash" |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 224 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 225 | depends on XARGS |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 226 | help |
| 227 | Default xargs unsupport single and double quotes |
| 228 | and backslash for can use aruments with spaces. |
| 229 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 230 | config FEATURE_XARGS_SUPPORT_TERMOPT |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 231 | bool "Enable support options -x" |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 232 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 233 | depends on XARGS |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 234 | help |
| 235 | Enable support exit if the size (see the -s or -n option) |
| 236 | is exceeded. |
| 237 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 238 | config FEATURE_XARGS_SUPPORT_ZERO_TERM |
Mike Frysinger | 441bfbf | 2006-07-03 05:19:44 +0000 | [diff] [blame] | 239 | bool "Enable null terminated option -0" |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 240 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 241 | depends on XARGS |
Glenn L McGrath | d12061b | 2003-10-10 23:15:23 +0000 | [diff] [blame] | 242 | help |
| 243 | Enable input filenames are terminated by a null character |
| 244 | instead of by whitespace, and the quotes and backslash |
| 245 | are not special. |
Glenn L McGrath | 9982596 | 2003-10-09 11:06:45 +0000 | [diff] [blame] | 246 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 247 | endmenu |