Mercurial > hg > toybox
annotate toys/Config.in @ 159:3977fecc1b49
Fix typo in toysh tty description.
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sat, 10 Nov 2007 09:10:51 +0000 |
parents | 714f4c051594 |
children | 0864aec90026 |
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 |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
104 config MDEV |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
105 bool "mdev" |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
106 default n |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
107 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
108 usage: mdev [-s] |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
109 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
110 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
|
111 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
112 -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
|
113 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
114 config MDEV_CONF |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
115 bool "Configuration file for mdev" |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
116 default n |
142
77be1035dbd8
Missing config dependency: The mdev config file should depend on mdev.
Rob Landley <rob@landley.net>
parents:
139
diff
changeset
|
117 depends on MDEV |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
118 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
119 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
|
120 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
|
121 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
122 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
|
123 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
|
124 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
|
125 matching devies. |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
126 |
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
|
127 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
|
128 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
|
129 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
|
130 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
|
131 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
|
132 |
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
|
133 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
|
134 |
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
|
135 -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
|
136 -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
|
137 -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
|
138 -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
|
139 -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
|
140 -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
|
141 -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
|
142 |
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 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
|
144 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
|
145 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
|
146 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
|
147 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
|
148 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
|
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 -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
|
151 -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
|
152 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
|
153 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
|
154 |
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 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
|
156 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
|
157 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
|
158 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
|
159 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
|
160 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
|
161 |
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 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
|
163 |
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 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
|
165 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
|
166 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
|
167 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
|
168 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
|
169 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
|
170 |
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 -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
|
172 -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
|
173 -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
|
174 |
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 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
|
176 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
|
177 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
|
178 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
|
179 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
|
180 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
|
181 |
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 -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
|
183 -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
|
184 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
|
185 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
|
186 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
|
187 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
|
188 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
|
189 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
|
190 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
|
191 |
157
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
192 config MKFIFO |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
193 bool "mkfifo" |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
194 default y |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
195 help |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
196 usage: mkfifo [-m mode] name... |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
197 |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
198 Makes a named pipe at name. |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
199 |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
200 -m mode The mode of the pipe(s) created by mkfifo. It defaults to 0644. |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
201 The format is in octal, optionally preceded by a leading zero. |
714f4c051594
Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
147
diff
changeset
|
202 |
34 | 203 config ONEIT |
204 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
|
205 default y |
34 | 206 help |
207 usage: oneit [-p] command [...] | |
208 | |
209 A simple init program that runs a single supplied command line with a | |
210 controlling tty (so CTRL-C can kill it). | |
211 | |
212 -p Power off instead of rebooting when command exits. | |
213 | |
214 The oneit command runs the supplied command line as a child process | |
215 (because PID 1 has signals blocked), attached to /dev/tty0, in its | |
216 own session. Then oneit reaps zombies until the child exits, at | |
217 which point it reboots (or with -p, powers off) the system. | |
218 | |
21
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
219 config PWD |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
220 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
|
221 default y |
21
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
222 help |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
223 usage: pwd |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
224 |
6475d6c46066
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents:
20
diff
changeset
|
225 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
|
226 |
115
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
227 config READLINK |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
228 bool "readlink" |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
229 default n |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
230 help |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
231 usage: readlink |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
232 |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
233 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
|
234 |
131
c374094cb60c
Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents:
118
diff
changeset
|
235 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
|
236 bool "readlink -f" |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
237 default n |
132 | 238 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
|
239 help |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
240 usage: readlink [-f] |
19b5567f0a1b
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents:
114
diff
changeset
|
241 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
242 -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
|
243 |
118 | 244 config SLEEP |
245 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
|
246 default y |
118 | 247 help |
248 usage: sleep SECONDS | |
249 | |
250 Wait a decimal integer number of seconds. | |
251 | |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
252 config SYNC |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
253 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
|
254 default y |
114
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
255 help |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
256 usage: sync |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
257 |
ce6956dfc0cf
Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
258 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
|
259 |
100
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
260 config TOUCH |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
261 bool "touch" |
147
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
262 default y |
100
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
263 help |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
264 usage: touch [-acmrt] FILE... |
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
265 |
147
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
266 Change file timestamps and ensure file existance. |
100
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
267 |
147
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
268 -a Only change the access time. |
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
269 -c Do not create the file if it doesn't exist. |
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
270 -m Only change the modification time. |
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
271 -r Reference file to take timestamps from. |
ec6e13b2495d
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents:
144
diff
changeset
|
272 -t Time to change {a,m}time to, in the format MMDDhhmm. |
100
c3d1d74d5d8f
MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents:
74
diff
changeset
|
273 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
274 config TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
275 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
|
276 default y |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
277 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
278 usage: sh [-c command] [script] |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
279 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
280 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
|
281 interactively and responds to it. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
282 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
283 -c command line to execute |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
284 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
285 config TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
286 bool "Interactive shell (terminal control)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
287 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
288 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
289 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
290 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
|
291 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
|
292 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
293 config TOYSH_PROFILE |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
294 bool "Profile support" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
295 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
296 depends on TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
297 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
298 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
|
299 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
300 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
|
301 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
302 config TOYSH_JOBCTL |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
303 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
|
304 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
305 depends on TOYSH_TTY |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
306 help |
159
3977fecc1b49
Fix typo in toysh tty description.
Charlie Shepherd <masterdriverz@gentoo.org>
parents:
157
diff
changeset
|
307 Add job control to toysh. This lets toysh handle CTRL-Z, and enables |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
308 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
|
309 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
310 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
|
311 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
312 config TOYSH_FLOWCTL |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
313 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
|
314 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
315 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
316 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
317 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
|
318 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
|
319 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
320 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
|
321 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
|
322 "{ }" to group commands. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
323 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
324 config TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
325 bool "Smarter argument parsing (quotes)" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
326 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
327 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
328 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
329 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
|
330 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
|
331 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
332 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
333 config TOYSH_WILDCARDS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
334 bool "Wildcards ( ?*{,} )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
335 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
336 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
337 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
338 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
|
339 "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
|
340 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
341 config TOYSH_PROCARGS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
342 bool "Executable arguments ( `` and $() )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
343 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
344 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
345 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
346 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
|
347 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
|
348 |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
349 (Bash calls this "command substitution".) |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
350 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
351 config TOYSH_ENVVARS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
352 bool "Environment variable support" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
353 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
354 depends on TOYSH_QUOTES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
355 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
356 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
|
357 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
|
358 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
359 config TOYSH_LOCALS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
360 bool "Local variables" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
361 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
362 depends on TOYSH_ENVVARS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
363 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
364 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
|
365 and $?. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
366 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
367 config TOYSH_ARRAYS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
368 bool "Array variables" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
369 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
370 depends on TOYSH_LOCALS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
371 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
372 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
|
373 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
374 config TOYSH_PIPES |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
375 bool "Pipes and redirects ( | > >> < << & && | || () ; )" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
376 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
377 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
378 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
379 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
|
380 | pipes, > >> < redirects, << here documents, || && conditional |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
381 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
|
382 control) & background processes. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
383 |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
384 config TOYSH_BUILTINS |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
385 bool "Builtin commands" |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
386 default n |
11
66e7b6eaa2e2
The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents:
10
diff
changeset
|
387 depends on TOYSH |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
388 help |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
389 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
|
390 unset, read, alias. |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
391 |
139
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
392 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
|
393 bool |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
394 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
|
395 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
|
396 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
397 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
|
398 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
399 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
|
400 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
|
401 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
402 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
|
403 bool |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
404 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
|
405 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
|
406 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
407 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
|
408 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
409 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
|
410 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
411 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
|
412 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
|
413 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
|
414 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
|
415 help |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
416 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
|
417 |
fb0745eec453
Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents:
132
diff
changeset
|
418 -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
|
419 -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
|
420 |
116 | 421 config TRUE |
422 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
|
423 default y |
116 | 424 help |
425 Return zero. | |
426 | |
20
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
427 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
|
428 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
|
429 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
|
430 help |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
431 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
|
432 |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
433 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
|
434 |
3981c96f9285
Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents:
17
diff
changeset
|
435 -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
|
436 |
74 | 437 config YES |
438 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
|
439 default y |
74 | 440 help |
441 usage: yes [args...] | |
442 | |
443 Repeatedly output line until killed. If no args, output 'y'. | |
444 | |
10
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
445 endmenu |
4d21d59f3206
Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff
changeset
|
446 |