Mercurial > hg > toybox
annotate toys/Config.in @ 139:fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
that file with release versions.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 29 Aug 2007 08:10:01 -0500 |
parents | a5a0ec609a3f |
children | 77be1035dbd8 |
rev | line source |
---|---|
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
1 menu "Toys" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
2 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
3 # Fake config symbol to attach help entry to. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
4 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
5 config TOYBOX |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
6 bool |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
7 default n |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
8 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
9 usage: toybox [command] [arguments...] |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
10 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
11 With no arguments, shows available commands. First argument is |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
12 name of a command to run, followed by any arguments to that command. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
13 |
48
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
14 config BZCAT |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
15 bool "bzcat" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
16 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
17 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
18 usage: bzcat [filename...] |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
19 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
20 Decompress listed files to stdout. Use stdin if no files listed. |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
21 |
35 | 22 config CATV |
23 bool "catv" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
24 default y |
35 | 25 help |
26 usage: catv [-evt] [filename...] | |
27 | |
28 Display nonprinting characters as escape sequences. Use M-x for | |
29 high ascii characters (>127), and ^x for other nonprinting chars. | |
30 | |
31 -e Mark each newline with $ | |
32 -t Show tabs as ^I | |
33 -v Don't use ^x or M-x escapes. | |
34 | |
66 | 35 config COUNT |
36 bool "count" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
37 default y |
66 | 38 help |
39 usage: count | |
40 | |
41 Copy stdin to stdout, displaying simple progress indicator to stderr. | |
42 | |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
43 config DF |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
44 bool "df (disk free)" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
45 default y |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
46 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
47 usage: df [-t type] [FILESYSTEM ...] |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
48 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
49 The "disk free" command, df shows total/used/available disk space for |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
50 each filesystem listed on the command line, or all currently mounted |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
51 filesystems. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
52 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
53 -t type |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
54 Display only filesystems of this type. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
55 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
56 config DF_PEDANTIC |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
57 bool "options -P and -k" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
58 default y |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
59 depends on DF |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
60 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
61 usage: df [-Pk] |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
62 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
63 -P The SUSv3 "Pedantic" option |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
64 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
65 Provides a slightly less useful output format dictated by |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
66 the Single Unix Specification version 3, and sets the |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
67 units to 512 bytes instead of the default 1024 bytes. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
68 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
69 -k Sets units back to 1024 bytes (the default without -P) |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
70 |
70
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
71 config ECHO |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
72 bool "echo" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
73 default y |
70
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
74 help |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
75 usage: echo [-ne] [args...] |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
76 |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
77 Write each argument to stdout, with one space between each, followed |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
78 by a newline. |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
79 |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
80 -n No trailing newline. |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
81 -e Process the following escape sequences: |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
82 \\ backslash |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
83 \a alert (beep/flash) |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
84 \b backspace |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
85 \c Stop output here (avoids trailing newline) |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
86 \f form feed |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
87 \n newline |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
88 \r carriage return |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
89 \t horizontal tab |
a1b464bbef08
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents:
66
diff
changeset
|
90 \v vertical tab |
116 | 91 |
92 config FALSE | |
93 bool "false" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
94 default y |
116 | 95 help |
96 Return nonzero. | |
97 | |
20
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
98 config HELLO |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
99 bool "hello" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
100 default y |
20
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
101 help |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
102 A hello world program. You don't need this. |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
103 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
104 config HELP |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
105 bool "help" |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
106 default y |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
107 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
108 usage: help [command] |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
109 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
110 Show usage information for toybox commands. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
111 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
112 config HELP_LONG |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
113 bool "Verbose help text" |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
114 default y |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
115 depends on HELP |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
116 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
117 Show more than one line of help information per command. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
118 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
119 |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
120 config MDEV |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
121 bool "mdev" |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
122 default n |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
123 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
124 usage: mdev [-s] |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
125 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
126 Create devices in /dev using information from /sys. |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
127 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
128 -s Scan all entries in /sys to populate /dev. |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
129 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
130 config MDEV_CONF |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
131 bool "Configuration file for mdev" |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
132 default n |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
133 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
134 The mdev config file (/etc/mdev.conf) contains lines that look like: |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
135 hd[a-z][0-9]* 0:3 660 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
136 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
137 Each line must contain three whitespace separated fields. The first |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
138 field is a regular expression matching one or more device names, and |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
139 the second and third fields are uid:gid and file permissions for |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
140 matching devies. |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
141 |
48
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
142 config MKE2FS |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
143 bool "mke2fs" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
144 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
145 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
146 usage: mke2fs [-Fnq] [-b ###] [-N|i ###] [-m ###] device |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
147 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
148 Create an ext2 filesystem on a block device or filesystem image. |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
149 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
150 -F Force to run on a mounted device |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
151 -n Don't write to device |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
152 -q Quiet (no output) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
153 -b size Block size (1024, 2048, or 4096) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
154 -N inodes Allocate this many inodes |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
155 -i bytes Allocate one inode for every XXX bytes of device |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
156 -m percent Reserve this percent of filesystem space for root user |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
157 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
158 config MKE2FS_JOURNAL |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
159 bool "Journaling support (ext3)" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
160 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
161 depends on MKE2FS |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
162 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
163 usage: [-j] [-J size=###,device=XXX] |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
164 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
165 -j Create journal (ext3) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
166 -J Journal options |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
167 size: Number of blocks (1024-102400) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
168 device: Specify an external journal |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
169 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
170 config MKE2FS_GEN |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
171 bool "Generate (gene2fs)" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
172 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
173 depends on MKE2FS |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
174 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
175 usage: gene2fs [options] device filename |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
176 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
177 The [options] are the same as mke2fs. |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
178 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
179 config MKE2FS_LABEL |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
180 bool "Label support" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
181 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
182 depends on MKE2FS |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
183 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
184 usage: mke2fs [-L label] [-M path] [-o string] |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
185 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
186 -L Volume label |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
187 -M Path to mount point |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
188 -o Created by |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
189 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
190 config MKE2FS_EXTENDED |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
191 bool "Extended options" |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
192 default n |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
193 depends on MKE2FS |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
194 help |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
195 usage: mke2fs [-E stride=###] [-O option[,option]] |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
196 |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
197 -E stride= Set RAID stripe size (in blocks) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
198 -O [opts] Specify fewer ext2 option flags (for old kernels) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
199 All of these are on by default (as appropriate) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
200 none Clear default options (all but journaling) |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
201 dir_index Use htree indexes for large directories |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
202 filetype Store file type info in directory entry |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
203 has_journal Set by -j |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
204 journal_dev Set by -J device=XXX |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
205 sparse_super Don't allocate huge numbers of redundant superblocks |
691bbc9f7b1b
Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents:
35
diff
changeset
|
206 |
34 | 207 config ONEIT |
208 bool "oneit" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
209 default y |
34 | 210 help |
211 usage: oneit [-p] command [...] | |
212 | |
213 A simple init program that runs a single supplied command line with a | |
214 controlling tty (so CTRL-C can kill it). | |
215 | |
216 -p Power off instead of rebooting when command exits. | |
217 | |
218 The oneit command runs the supplied command line as a child process | |
219 (because PID 1 has signals blocked), attached to /dev/tty0, in its | |
220 own session. Then oneit reaps zombies until the child exits, at | |
221 which point it reboots (or with -p, powers off) the system. | |
222 | |
21
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
223 config PWD |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
224 bool "pwd" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
225 default y |
21
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
226 help |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
227 usage: pwd |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
228 |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
229 The print working directory command prints the current directory. |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
230 |
115
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
231 config READLINK |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
232 bool "readlink" |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
233 default n |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
234 help |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
235 usage: readlink |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
236 |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
237 Show what a symbolic link points to. |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
238 |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
239 config READLINK_F |
115
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
240 bool "readlink -f" |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
241 default n |
132 | 242 depends on READLINK |
115
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
243 help |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
244 usage: readlink [-f] |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
245 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
246 -f Show final location, including normal files and multiple symlinks. |
115
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
247 |
118 | 248 config SLEEP |
249 bool "sleep" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
250 default y |
118 | 251 help |
252 usage: sleep SECONDS | |
253 | |
254 Wait a decimal integer number of seconds. | |
255 | |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
256 config SYNC |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
257 bool "sync" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
258 default y |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
259 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
260 usage: sync |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
261 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
262 Write pending cached data to disk (synchronize), blocking until done. |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
263 |
100
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
264 config TOUCH |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
265 bool "touch" |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
266 default n |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
267 help |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
268 usage: touch [-acmrt] FILE... |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
269 |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
270 Change file timestamps/length. Create empty or sparse files. |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
271 |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
272 -a |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
273 -c |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
274 -m |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
275 -r |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
276 -t |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
277 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
278 config TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
279 bool "sh (toysh)" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
280 default y |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
281 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
282 usage: sh [-c command] [script] |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
283 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
284 The toybox command shell. Runs a shell script, or else reads input |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
285 interactively and responds to it. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
286 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
287 -c command line to execute |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
288 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
289 config TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
290 bool "Interactive shell (terminal control)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
291 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
292 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
293 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
294 Add terminal control to toysh. This is necessary for interactive use, |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
295 so the shell isn't killed by CTRL-C. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
296 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
297 config TOYSH_PROFILE |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
298 bool "Profile support" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
299 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
300 depends on TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
301 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
302 Read /etc/profile and ~/.profile when running interactively. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
303 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
304 Also enables the built-in command "source". |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
305 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
306 config TOYSH_JOBCTL |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
307 bool "Job Control (fg, bg, jobs)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
308 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
309 depends on TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
310 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
311 Add job cocntrol to toysh. This lets toysh handle CTRL-Z, and enables |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
312 the built-in commands "fg", "bg", and "jobs". |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
313 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
314 With pipe support, enable use of "&" to run background processes. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
315 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
316 config TOYSH_FLOWCTL |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
317 bool "Flow control (if, while, for, functions)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
318 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
319 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
320 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
321 Add flow control to toysh. This enables the if/then/else/fi, |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
322 while/do/done, and for/do/done constructs. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
323 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
324 With pipe support, this enables the ability to define functions |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
325 using the "function name" or "name()" syntax, plus curly brackets |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
326 "{ }" to group commands. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
327 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
328 config TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
329 bool "Smarter argument parsing (quotes)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
330 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
331 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
332 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
333 Add support for parsing "" and '' style quotes to the toysh command |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
334 parser, with lets arguments have spaces in them. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
335 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
336 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
337 config TOYSH_WILDCARDS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
338 bool "Wildcards ( ?*{,} )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
339 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
340 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
341 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
342 Expand wildcards in argument names, ala "ls -l *.t?z" and |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
343 "rm subdir/{one,two,three}.txt". |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
344 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
345 config TOYSH_PROCARGS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
346 bool "Executable arguments ( `` and $() )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
347 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
348 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
349 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
350 Add support for executing arguments contianing $() and ``, using |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
351 the output of the command as the new argument value(s). |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
352 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
353 (Bash calls this "command substitution".) |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
354 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
355 config TOYSH_ENVVARS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
356 bool "Environment variable support" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
357 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
358 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
359 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
360 Substitute environment variable values for $VARNAME or ${VARNAME}, |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
361 and enable the built-in command "export". |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
362 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
363 config TOYSH_LOCALS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
364 bool "Local variables" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
365 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
366 depends on TOYSH_ENVVARS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
367 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
368 Support for local variables, fancy prompts ($PS1), the "set" command, |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
369 and $?. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
370 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
371 config TOYSH_ARRAYS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
372 bool "Array variables" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
373 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
374 depends on TOYSH_LOCALS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
375 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
376 Support for ${blah[blah]} style array variables. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
377 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
378 config TOYSH_PIPES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
379 bool "Pipes and redirects ( | > >> < << & && | || () ; )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
380 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
381 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
382 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
383 Support multiple commands on the same command line. This includes |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
384 | pipes, > >> < redirects, << here documents, || && conditional |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
385 execution, () subshells, ; sequential execution, and (with job |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
386 control) & background processes. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
387 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
388 config TOYSH_BUILTINS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
389 bool "Builtin commands" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
390 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
391 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
392 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
393 Adds the commands exec, fg, bg, help, jobs, pwd, export, source, set, |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
394 unset, read, alias. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
395 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
396 config EXIT |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
397 bool |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
398 default n |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
399 depends on TOYSH |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
400 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
401 usage: exit [status] |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
402 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
403 Exit shell. If no return value supplied on command line, use value |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
404 of most recent command, or 0 if none. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
405 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
406 config CD |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
407 bool |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
408 default n |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
409 depends on TOYSH |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
410 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
411 usage: cd [path] |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
412 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
413 Change current directory. With no arguments, go to $HOME. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
414 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
415 config CD_P |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
416 bool # "-P support for cd" |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
417 default n |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
418 depends on TOYSH |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
419 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
420 usage: cd [-PL] |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
421 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
422 -P Physical path: resolve symlinks in path. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
423 -L Cancel previous -P and restore default behavior. |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
424 |
116 | 425 config TRUE |
426 bool "true" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
427 default y |
116 | 428 help |
429 Return zero. | |
430 | |
20
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
431 config WHICH |
25
eb46bb5626cb
New option parsing infrastructure (doesn't use getopt). Hook it up to
Rob Landley <rob@landley.net>
parents:
21
diff
changeset
|
432 bool "which" |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
433 default y |
20
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
434 help |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
435 usage: which [-a] filename ... |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
436 |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
437 Search $PATH for executable files matching filename(s). |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
438 |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
439 -a Show all matches |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
440 |
74 | 441 config YES |
442 bool "yes" | |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
443 default y |
74 | 444 help |
445 usage: yes [args...] | |
446 | |
447 Repeatedly output line until killed. If no args, output 'y'. | |
448 | |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
449 endmenu |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
450 |