summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoronefang2005-03-31 05:22:49 +0000
committeronefang2005-03-31 05:22:49 +0000
commitc7cd434589ca09e8383d6339b952c7f564b2077b (patch)
treee3b88196a9b58ef9fd2ff20f392a50632e41521a
parentJust a test commit. (diff)
downloadurunlevel-c7cd434589ca09e8383d6339b952c7f564b2077b.zip
urunlevel-c7cd434589ca09e8383d6339b952c7f564b2077b.tar.gz
urunlevel-c7cd434589ca09e8383d6339b952c7f564b2077b.tar.bz2
urunlevel-c7cd434589ca09e8383d6339b952c7f564b2077b.tar.xz
Removed files that a patch will be provided for.
-rw-r--r--urunlevel/include/applets.h752
-rw-r--r--urunlevel/include/usage.h3077
-rw-r--r--urunlevel/networking/udhcp/dhcpc.h38
-rw-r--r--urunlevel/networking/udhcp/libbb_udhcp.h55
-rw-r--r--urunlevel/sysdeps/linux/Config.in296
5 files changed, 0 insertions, 4218 deletions
diff --git a/urunlevel/include/applets.h b/urunlevel/include/applets.h
deleted file mode 100644
index 27fe124..0000000
--- a/urunlevel/include/applets.h
+++ /dev/null
@@ -1,752 +0,0 @@
1/*
2 * applets.h - a listing of all busybox applets.
3 *
4 * If you write a new applet, you need to add an entry to this list to make
5 * busybox aware of it.
6 *
7 * It is CRUCIAL that this listing be kept in ascii order, otherwise the binary
8 * search lookup contributed by Gaute B Strokkenes stops working. If you value
9 * your kneecaps, you'll be sure to *make sure* that any changes made to this
10 * file result in the listing remaining in ascii order. You have been warned.
11 */
12
13#undef APPLET
14#undef APPLET_ODDNAME
15#undef APPLET_NOUSAGE
16
17
18#if defined(PROTOTYPES)
19 #define APPLET(a,b,c,d) extern int b(int argc, char **argv);
20 #define APPLET_NOUSAGE(a,b,c,d) extern int b(int argc, char **argv);
21 #define APPLET_ODDNAME(a,b,c,d,e) extern int b(int argc, char **argv);
22 extern const char usage_messages[];
23#elif defined(MAKE_USAGE)
24 #ifdef CONFIG_FEATURE_VERBOSE_USAGE
25 #define APPLET(a,b,c,d) a##_trivial_usage "\n\n" a##_full_usage "\0"
26 #define APPLET_NOUSAGE(a,b,c,d) "\b\0"
27 #define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\n\n" e##_full_usage "\0"
28 #else
29 #define APPLET(a,b,c,d) a##_trivial_usage "\0"
30 #define APPLET_NOUSAGE(a,b,c,d) "\b\0"
31 #define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\0"
32 #endif
33#elif defined(MAKE_LINKS)
34# define APPLET(a,b,c,d) LINK c a
35# define APPLET_NOUSAGE(a,b,c,d) LINK c a
36# define APPLET_ODDNAME(a,b,c,d,e) LINK c a
37#else
38 const struct BB_applet applets[] = {
39 #define APPLET(a,b,c,d) {#a,b,c,d},
40 #define APPLET_NOUSAGE(a,b,c,d) {a,b,c,d},
41 #define APPLET_ODDNAME(a,b,c,d,e) {a,b,c,d},
42#endif
43
44#ifdef CONFIG_INSTALL_NO_USR
45#define _BB_DIR_USR_BIN _BB_DIR_BIN
46#define _BB_DIR_USR_SBIN _BB_DIR_SBIN
47#endif
48
49
50
51#ifdef CONFIG_TEST
52 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
53#endif
54#ifdef CONFIG_ADDGROUP
55 APPLET(addgroup, addgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
56#endif
57#ifdef CONFIG_ADDUSER
58 APPLET(adduser, adduser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
59#endif
60#ifdef CONFIG_ADJTIMEX
61 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
62#endif
63#ifdef CONFIG_AR
64 APPLET(ar, ar_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
65#endif
66#ifdef CONFIG_ARPING
67 APPLET(arping, arping_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
68#endif
69#ifdef CONFIG_ASH
70 APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
71#endif
72#ifdef CONFIG_AWK
73 APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
74#endif
75#ifdef CONFIG_BASENAME
76 APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
77#endif
78#ifdef CONFIG_BOOT_NAMED
79 APPLET(boot_named, boot_named_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
80#endif
81#ifdef CONFIG_BOOT_PORTMAP
82 APPLET(boot_portmap, boot_portmap_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
83#endif
84#ifdef CONFIG_BOOT_SYSLOG
85 APPLET(boot_syslog, boot_syslog_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
86#endif
87#ifdef CONFIG_BOOT_TIME
88 APPLET(boot_time, boot_time_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
89#endif
90#ifdef CONFIG_BUNZIP2
91 APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
92#endif
93 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
94#ifdef CONFIG_BUNZIP2
95 APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
96#endif
97#ifdef CONFIG_CAL
98 APPLET(cal, cal_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
99#endif
100#ifdef CONFIG_CAT
101 APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
102#endif
103#ifdef CONFIG_CHGRP
104 APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
105#endif
106#ifdef CONFIG_CHMOD
107 APPLET(chmod, chmod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
108#endif
109#ifdef CONFIG_CHOWN
110 APPLET(chown, chown_main, _BB_DIR_BIN, _BB_SUID_NEVER)
111#endif
112#ifdef CONFIG_CHROOT
113 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
114#endif
115#ifdef CONFIG_CHVT
116 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
117#endif
118#ifdef CONFIG_CLEAR
119 APPLET(clear, clear_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
120#endif
121#ifdef CONFIG_CMP
122 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
123#endif
124#ifdef CONFIG_CP
125 APPLET(cp, cp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
126#endif
127#ifdef CONFIG_CPIO
128 APPLET(cpio, cpio_main, _BB_DIR_BIN, _BB_SUID_NEVER)
129#endif
130#ifdef CONFIG_CROND
131 APPLET(crond, crond_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
132#endif
133#ifdef CONFIG_CRONTAB
134 APPLET(crontab, crontab_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
135#endif
136#ifdef CONFIG_CUT
137 APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
138#endif
139#ifdef CONFIG_DATE
140 APPLET(date, date_main, _BB_DIR_BIN, _BB_SUID_NEVER)
141#endif
142#ifdef CONFIG_DC
143 APPLET(dc, dc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
144#endif
145#ifdef CONFIG_DD
146 APPLET(dd, dd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
147#endif
148#ifdef CONFIG_DEALLOCVT
149 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
150#endif
151#ifdef CONFIG_DELGROUP
152 APPLET(delgroup, delgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
153#endif
154#ifdef CONFIG_DELUSER
155 APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
156#endif
157#ifdef CONFIG_DEVFSD
158 APPLET(devfsd, devfsd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
159#endif
160#ifdef CONFIG_DF
161 APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
162#endif
163#ifdef CONFIG_DIRNAME
164 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
165#endif
166#ifdef CONFIG_DMESG
167 APPLET(dmesg, dmesg_main, _BB_DIR_BIN, _BB_SUID_NEVER)
168#endif
169#ifdef CONFIG_DOS2UNIX
170 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
171#endif
172#ifdef CONFIG_DPKG
173 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
174#endif
175#ifdef CONFIG_DPKG_DEB
176 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, dpkg_deb)
177#endif
178#ifdef CONFIG_DU
179 APPLET(du, du_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
180#endif
181#ifdef CONFIG_DUMPKMAP
182 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER)
183#endif
184#ifdef CONFIG_DUMPLEASES
185 APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
186#endif
187#ifdef CONFIG_ECHO
188 APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
189#endif
190#if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
191 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
192#endif
193#ifdef CONFIG_ENV
194 APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
195#endif
196#ifdef CONFIG_EXPR
197 APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
198#endif
199#ifdef CONFIG_FALSE
200 APPLET(false, false_main, _BB_DIR_BIN, _BB_SUID_NEVER)
201#endif
202#ifdef CONFIG_FBSET
203 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
204#endif
205#ifdef CONFIG_FDFLUSH
206 APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
207#endif
208#ifdef CONFIG_FDFORMAT
209 APPLET(fdformat, fdformat_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
210#endif
211#ifdef CONFIG_FDISK
212 APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
213#endif
214#if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS)
215 APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
216#endif
217#ifdef CONFIG_FIND
218 APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
219#endif
220#ifdef CONFIG_FOLD
221 APPLET(fold, fold_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
222#endif
223#ifdef CONFIG_FREE
224 APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
225#endif
226#ifdef CONFIG_FREERAMDISK
227 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
228#endif
229#ifdef CONFIG_FSCK_MINIX
230 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix)
231#endif
232#ifdef CONFIG_FTPGET
233 APPLET(ftpget, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
234#endif
235#ifdef CONFIG_FTPPUT
236 APPLET(ftpput, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
237#endif
238#ifdef CONFIG_GETOPT
239 APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
240#endif
241#ifdef CONFIG_GETPKG
242 APPLET(getpkg, getpkg_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
243#endif
244#ifdef CONFIG_GETTY
245 APPLET(getty, getty_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
246#endif
247#ifdef CONFIG_GREP
248 APPLET(grep, grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
249#endif
250#ifdef CONFIG_GUNZIP
251 APPLET(gunzip, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
252#endif
253#ifdef CONFIG_GZIP
254 APPLET(gzip, gzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
255#endif
256#ifdef CONFIG_HALT
257 APPLET(halt, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
258#endif
259#ifdef CONFIG_HDPARM
260 APPLET(hdparm, hdparm_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
261#endif
262#ifdef CONFIG_HEAD
263 APPLET(head, head_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
264#endif
265#ifdef CONFIG_HEXDUMP
266 APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
267#endif
268#ifdef CONFIG_HOSTID
269 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
270#endif
271#ifdef CONFIG_HOSTNAME
272 APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
273#endif
274#ifdef CONFIG_HTTPD
275 APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
276#endif
277#ifdef CONFIG_HUSH
278 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
279#endif
280#ifdef CONFIG_HWCLOCK
281 APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
282#endif
283#ifdef CONFIG_ID
284 APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
285#endif
286#ifdef CONFIG_IFCONFIG
287 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
288#endif
289#ifdef CONFIG_IFUPDOWN
290 APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
291#endif
292#ifdef CONFIG_IFUPDOWN
293 APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
294#endif
295#ifdef CONFIG_INETD
296 APPLET(inetd, inetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
297#endif
298#ifdef CONFIG_INIT
299 APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
300#endif
301#ifdef CONFIG_INSMOD
302 APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
303#endif
304#ifdef CONFIG_INSTALL
305 APPLET(install, install_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
306#endif
307#ifdef CONFIG_INSTALL_INITD
308 APPLET(install_initd, install_initd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
309#endif
310#ifdef CONFIG_IP
311 APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
312#endif
313#ifdef CONFIG_IPADDR
314 APPLET(ipaddr, ipaddr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
315#endif
316#ifdef CONFIG_IPCALC
317 APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER)
318#endif
319#ifdef CONFIG_IPLINK
320 APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER)
321#endif
322#ifdef CONFIG_IPROUTE
323 APPLET(iproute, iproute_main, _BB_DIR_BIN, _BB_SUID_NEVER)
324#endif
325#ifdef CONFIG_IPTUNNEL
326 APPLET(iptunnel, iptunnel_main, _BB_DIR_BIN, _BB_SUID_NEVER)
327#endif
328#ifdef CONFIG_KILL
329 APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)
330#endif
331#ifdef CONFIG_KILLALL
332 APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
333#endif
334#ifdef CONFIG_KILLPROC
335 APPLET(killproc, killproc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
336#endif
337#ifdef CONFIG_KLOGD
338 APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
339#endif
340#ifdef CONFIG_LASH
341 APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
342#endif
343#ifdef CONFIG_LAST
344 APPLET(last, last_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
345#endif
346#ifdef CONFIG_LENGTH
347 APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
348#endif
349#ifdef CONFIG_FEATURE_INITRD
350 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
351#endif
352#ifdef CONFIG_LINUXRC
353 APPLET(linuxrc, linuxrc_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
354#endif
355#ifdef CONFIG_LN
356 APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
357#endif
358#ifdef CONFIG_LOADFONT
359 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
360#endif
361#ifdef CONFIG_LOADKMAP
362 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
363#endif
364#ifdef CONFIG_LOCAL_FS
365 APPLET(local_fs, local_fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
366#endif
367#ifdef CONFIG_LOG_FAILURE_MSG
368 APPLET(log_failure_msg, log_failure_msg_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
369#endif
370#ifdef CONFIG_LOG_SUCCESS_MSG
371 APPLET(log_success_msg, log_success_msg_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
372#endif
373#ifdef CONFIG_LOG_WARNING_MSG
374 APPLET(log_warning_msg, log_warning_msg_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
375#endif
376#ifdef CONFIG_LOGGER
377 APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
378#endif
379#ifdef CONFIG_LOGIN
380 APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
381#endif
382#ifdef CONFIG_LOGNAME
383 APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
384#endif
385#ifdef CONFIG_LOGREAD
386 APPLET(logread, logread_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
387#endif
388#ifdef CONFIG_LOSETUP
389 APPLET(losetup, losetup_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
390#endif
391#ifdef CONFIG_LS
392 APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
393#endif
394#ifdef CONFIG_LSMOD
395 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
396#endif
397#ifdef CONFIG_MAKEDEVS
398 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
399#endif
400#ifdef CONFIG_MAN
401 APPLET(man, man_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
402#endif
403#ifdef CONFIG_MD5SUM
404 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
405#endif
406#ifdef CONFIG_MESG
407 APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
408#endif
409#ifdef CONFIG_MKDIR
410 APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
411#endif
412#ifdef CONFIG_MKFIFO
413 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
414#endif
415#ifdef CONFIG_MKFS_MINIX
416 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
417#endif
418#ifdef CONFIG_MKNOD
419 APPLET(mknod, mknod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
420#endif
421#ifdef CONFIG_MKSWAP
422 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
423#endif
424#ifdef CONFIG_MKTEMP
425 APPLET(mktemp, mktemp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
426#endif
427#ifdef CONFIG_MODPROBE
428 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
429#endif
430#ifdef CONFIG_MORE
431 APPLET(more, more_main, _BB_DIR_BIN, _BB_SUID_NEVER)
432#endif
433#ifdef CONFIG_MOUNT
434 APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
435#endif
436#ifdef CONFIG_MSH
437 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
438#endif
439#ifdef CONFIG_MT
440 APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
441#endif
442#ifdef CONFIG_MV
443 APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
444#endif
445#ifdef CONFIG_NAMEIF
446 APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
447#endif
448#ifdef CONFIG_NC
449 APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
450#endif
451#ifdef CONFIG_NETSTAT
452 APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
453#endif
454#ifdef CONFIG_NETWORK
455 APPLET(network, network_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
456#endif
457#ifdef CONFIG_NSLOOKUP
458 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
459#endif
460#ifdef CONFIG_OD
461 APPLET(od, od_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
462#endif
463#ifdef CONFIG_OPENVT
464 APPLET(openvt, openvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
465#endif
466#ifdef CONFIG_PASSWD
467 APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
468#endif
469#ifdef CONFIG_PATCH
470 APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
471#endif
472#ifdef CONFIG_PIDOF
473 APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER)
474#endif
475#ifdef CONFIG_PIDOFPROC
476 APPLET(pidofproc, pidofproc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
477#endif
478#ifdef CONFIG_PING
479 APPLET(ping, ping_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
480#endif
481#ifdef CONFIG_PING6
482 APPLET(ping6, ping6_main, _BB_DIR_BIN, _BB_SUID_NEVER)
483#endif
484#ifdef CONFIG_PIPE_PROGRESS
485 APPLET_NOUSAGE("pipe_progress", pipe_progress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
486#endif
487#ifdef CONFIG_PIVOT_ROOT
488 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
489#endif
490#ifdef CONFIG_POWEROFF
491 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
492#endif
493#ifdef CONFIG_PRINTF
494 APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
495#endif
496#ifdef CONFIG_PS
497 APPLET(ps, ps_main, _BB_DIR_BIN, _BB_SUID_NEVER)
498#endif
499#ifdef CONFIG_PWD
500 APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
501#endif
502#ifdef CONFIG_RC
503 APPLET(rc, rc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
504#endif
505#ifdef CONFIG_RCS
506 APPLET(rcS, rcS_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
507#endif
508#ifdef CONFIG_RDATE
509 APPLET(rdate, rdate_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
510#endif
511#ifdef CONFIG_READLINK
512 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
513#endif
514#ifdef CONFIG_REALPATH
515 APPLET(realpath, realpath_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
516#endif
517#ifdef CONFIG_REBOOT
518 APPLET(reboot, reboot_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
519#endif
520#ifdef CONFIG_REMOTE_FS
521 APPLET(remote_fs, remote_fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
522#endif
523#ifdef CONFIG_REMOVE_INITD
524 APPLET(remove_initd, remove_initd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
525#endif
526#ifdef CONFIG_RENICE
527 APPLET(renice, renice_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
528#endif
529#ifdef CONFIG_RESET
530 APPLET(reset, reset_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
531#endif
532#ifdef CONFIG_RM
533 APPLET(rm, rm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
534#endif
535#ifdef CONFIG_RMDIR
536 APPLET(rmdir, rmdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
537#endif
538#ifdef CONFIG_RMMOD
539 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
540#endif
541#ifdef CONFIG_ROUTE
542 APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
543#endif
544#ifdef CONFIG_RPM
545 APPLET(rpm, rpm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
546#endif
547#ifdef CONFIG_RPM2CPIO
548 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
549#endif
550#ifdef CONFIG_RUN_PARTS
551 APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts)
552#endif
553#ifdef CONFIG_RX
554 APPLET(rx, rx_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
555#endif
556#ifdef CONFIG_SED
557 APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
558#endif
559#ifdef CONFIG_SEQ
560 APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
561#endif
562#ifdef CONFIG_SETKEYCODES
563 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
564#endif
565#if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
566 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
567#elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
568 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
569#elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
570 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
571#elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
572 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
573#endif
574#ifdef CONFIG_SHA1SUM
575 APPLET(sha1sum, sha1sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
576#endif
577#ifdef CONFIG_SLEEP
578 APPLET(sleep, sleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
579#endif
580#ifdef CONFIG_SORT
581 APPLET(sort, sort_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
582#endif
583#ifdef CONFIG_START_STOP_DAEMON
584 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon)
585#endif
586#ifdef CONFIG_START_DAEMON
587 APPLET(start_daemon, start_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
588#endif
589#ifdef CONFIG_STRINGS
590 APPLET(strings, strings_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
591#endif
592#ifdef CONFIG_STTY
593 APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER)
594#endif
595#ifdef CONFIG_SU
596 APPLET(su, su_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
597#endif
598#ifdef CONFIG_SULOGIN
599 APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
600#endif
601#ifdef CONFIG_SWAPONOFF
602 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
603#endif
604#ifdef CONFIG_SWAPONOFF
605 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
606#endif
607#ifdef CONFIG_SYNC
608 APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
609#endif
610#ifdef CONFIG_SYSCTL
611 APPLET(sysctl, sysctl_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
612#endif
613#ifdef CONFIG_SYSLOGD
614 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
615#endif
616#ifdef CONFIG_TAIL
617 APPLET(tail, tail_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
618#endif
619#ifdef CONFIG_TAR
620 APPLET(tar, tar_main, _BB_DIR_BIN, _BB_SUID_NEVER)
621#endif
622#ifdef CONFIG_TEE
623 APPLET(tee, tee_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
624#endif
625#ifdef CONFIG_TELNET
626 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
627#endif
628#ifdef CONFIG_TELNETD
629 APPLET(telnetd, telnetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
630#endif
631#ifdef CONFIG_TEST
632 APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
633#endif
634#ifdef CONFIG_TFTP
635 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
636#endif
637#ifdef CONFIG_TIME
638 APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
639#endif
640#ifdef CONFIG_TOP
641 APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
642#endif
643#ifdef CONFIG_TOUCH
644 APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
645#endif
646#ifdef CONFIG_TR
647 APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
648#endif
649#ifdef CONFIG_TRACEROUTE
650 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)
651#endif
652#ifdef CONFIG_TRUE
653 APPLET(true, true_main, _BB_DIR_BIN, _BB_SUID_NEVER)
654#endif
655#ifdef CONFIG_TTY
656 APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
657#endif
658#ifdef CONFIG_UDHCPC
659 APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
660#endif
661#ifdef CONFIG_UDHCPC_SCRIPT
662 APPLET(udhcpc_script, udhcpc_script_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
663#endif
664#ifdef CONFIG_UDHCPD
665 APPLET(udhcpd, udhcpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
666#endif
667#ifdef CONFIG_UMOUNT
668 APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
669#endif
670#ifdef CONFIG_UNAME
671 APPLET(uname, uname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
672#endif
673#ifdef CONFIG_UNCOMPRESS
674 APPLET(uncompress, uncompress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
675#endif
676#ifdef CONFIG_UNIQ
677 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
678#endif
679#ifdef CONFIG_UNIX2DOS
680 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
681#endif
682#ifdef CONFIG_UNZIP
683 APPLET(unzip, unzip_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
684#endif
685#ifdef CONFIG_UPTIME
686 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
687#endif
688#ifdef CONFIG_USLEEP
689 APPLET(usleep, usleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
690#endif
691#ifdef CONFIG_UUDECODE
692 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
693#endif
694#ifdef CONFIG_UUENCODE
695 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
696#endif
697#ifdef CONFIG_VCONFIG
698 APPLET(vconfig, vconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
699#endif
700#ifdef CONFIG_VI
701 APPLET(vi, vi_main, _BB_DIR_BIN, _BB_SUID_NEVER)
702#endif
703#ifdef CONFIG_VLOCK
704 APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
705#endif
706#ifdef CONFIG_WATCH
707 APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
708#endif
709#ifdef CONFIG_WATCHDOG
710 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
711#endif
712#ifdef CONFIG_WC
713 APPLET(wc, wc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
714#endif
715#ifdef CONFIG_WGET
716 APPLET(wget, wget_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
717#endif
718#ifdef CONFIG_WHICH
719 APPLET(which, which_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
720#endif
721#ifdef CONFIG_WHO
722 APPLET(who, who_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
723#endif
724#ifdef CONFIG_WHOAMI
725 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
726#endif
727#ifdef CONFIG_XARGS
728 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
729#endif
730#ifdef CONFIG_YES
731 APPLET(yes, yes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
732#endif
733#ifdef CONFIG_GUNZIP
734 APPLET(zcat, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
735#endif
736
737#if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
738 { 0,NULL,0 }
739};
740
741#endif
742
743
744
745
746
747
748
749
750
751
752
diff --git a/urunlevel/include/usage.h b/urunlevel/include/usage.h
deleted file mode 100644
index c18bb20..0000000
--- a/urunlevel/include/usage.h
+++ /dev/null
@@ -1,3077 +0,0 @@
1#ifndef __BB_USAGE_H__
2#define __BB_USAGE_H__
3
4#define addgroup_trivial_usage \
5 "[-g GID] group_name [user_name]"
6#define addgroup_full_usage \
7 "Adds a group to the system\n\n" \
8 "Options:\n" \
9 "\t-g GID\t\tspecify gid"
10
11#define adduser_trivial_usage \
12 "[OPTIONS] user_name"
13#define adduser_full_usage \
14 "Adds a user to the system\n\n" \
15 "Options:\n" \
16 "\t-h DIR\t\tAssign home directory DIR\n" \
17 "\t-g GECOS\tAssign gecos field GECOS\n" \
18 "\t-s SHELL\tAssign login shell SHELL\n" \
19 "\t-G\t\tAdd the user to existing group GROUP\n" \
20 "\t-S\t\tcreate a system user (ignored)\n" \
21 "\t-D\t\tDo not assign a password (logins still possible via ssh)\n" \
22 "\t-H\t\tDo not create the home directory"
23
24#define adjtimex_trivial_usage \
25 "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
26#define adjtimex_full_usage \
27 "Reads and optionally sets system timebase parameters.\n" \
28 "See adjtimex(2).\n\n" \
29 "Options:\n" \
30 "\t-q\t\tquiet mode - do not print\n" \
31 "\t-o offset\ttime offset, microseconds\n" \
32 "\t-f frequency\tfrequency adjust, integer kernel units (65536 is 1ppm)\n" \
33 "\t\t\t(positive values make the system clock run fast)\n" \
34 "\t-t tick\t\tmicroseconds per tick, usually 10000\n" \
35 "\t-p timeconstant"
36
37#define ar_trivial_usage \
38 "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
39#define ar_full_usage \
40 "Extract or list FILES from an ar archive.\n\n" \
41 "Options:\n" \
42 "\t-o\t\tpreserve original dates\n" \
43 "\t-p\t\textract to stdout\n" \
44 "\t-t\t\tlist\n" \
45 "\t-x\t\textract\n" \
46 "\t-v\t\tverbosely list files processed"
47
48#define arping_trivial_usage \
49 "[-fqbDUA] [-c count] [-w timeout] [-I device] [-s sender] target\n"
50#define arping_full_usage \
51 "Ping hosts by ARP requests/replies.\n\n" \
52 "Options:\n" \
53 "\t-f\t\tQuit on first ARP reply\n" \
54 "\t-q\t\tBe quiet\n" \
55 "\t-b\t\tKeep broadcasting, don't go unicast\n" \
56 "\t-D\t\tDuplicated address detection mode\n" \
57 "\t-U\t\tUnsolicited ARP mode, update your neighbours\n" \
58 "\t-A\t\tARP answer mode, update your neighbours\n" \
59 "\t-c count\tStop after sending count ARP request packets\n" \
60 "\t-w timeout\tTime to wait for ARP reply, in seconds\n" \
61 "\t-I device\tOutgoing interface name, default is eth0\n" \
62 "\t-s sender\tSet specific sender IP address\n" \
63 "\ttarget\t\tTarget IP address of ARP request"
64
65#define ash_trivial_usage \
66 "[FILE]...\n" \
67 "or: ash -c command [args]...\n"
68#define ash_full_usage \
69 "The ash shell (command interpreter)"
70
71#define awk_trivial_usage \
72 "[OPTION]... [program-text] [FILE ...]"
73#define awk_full_usage \
74 "Options:\n" \
75 "\t-v var=val\t\tassign value 'val' to variable 'var'\n" \
76 "\t-F sep\t\tuse 'sep' as field separator\n" \
77 "\t-f progname\t\tread program source from file 'progname'"
78
79#define basename_trivial_usage \
80 "FILE [SUFFIX]"
81#define basename_full_usage \
82 "Strips directory path and suffixes from FILE.\n" \
83 "If specified, also removes any trailing SUFFIX."
84#define basename_example_usage \
85 "$ basename /usr/local/bin/foo\n" \
86 "foo\n" \
87 "$ basename /usr/local/bin/\n" \
88 "bin\n" \
89 "$ basename /foo/bar.txt .txt\n" \
90 "bar"
91
92
93#define boot_named_trivial_usage \
94 ""
95#define boot_named_full_usage \
96 "LSB boot_named init system."
97#define boot_named_example_usage \
98 "$ boot_named start\n"
99
100
101#define boot_portmap_trivial_usage \
102 ""
103#define boot_portmap_full_usage \
104 "LSB boot_portmap init system."
105#define boot_portmap_example_usage \
106 "$ boot_portmap start\n"
107
108
109#define boot_syslog_trivial_usage \
110 ""
111#define boot_syslog_full_usage \
112 "LSB boot_syslog init system."
113#define boot_syslog_example_usage \
114 "$ boot_syslog start\n"
115
116
117#define boot_time_trivial_usage \
118 ""
119#define boot_time_full_usage \
120 "LSB boot_time init system."
121#define boot_time_example_usage \
122 "$ boot_time start\n"
123
124
125#define bunzip2_trivial_usage \
126 "[OPTION]... [FILE]"
127#define bunzip2_full_usage \
128 "Uncompress FILE (or standard input if FILE is '-' or omitted).\n\n" \
129 "Options:\n" \
130 "\t-c\tWrite output to standard output\n" \
131 "\t-f\tForce"
132
133#define bzcat_trivial_usage \
134 "FILE"
135#define bzcat_full_usage \
136 "Uncompress to stdout."
137
138#define cal_trivial_usage \
139 "[-jy] [[month] year]"
140#define cal_full_usage \
141 "Display a calendar.\n" \
142 "\nOptions:\n" \
143 "\t-j\tUse julian dates.\n" \
144 "\t-y\tDisplay the entire year."
145
146#define cat_trivial_usage \
147 "[-u] [FILE]..."
148#define cat_full_usage \
149 "Concatenates FILE(s) and prints them to stdout.\n\n" \
150 "Options:\n" \
151 "\t-u\tignored since unbuffered i/o is always used"
152#define cat_example_usage \
153 "$ cat /proc/uptime\n" \
154 "110716.72 17.67"
155
156#define chgrp_trivial_usage \
157 "[OPTION]... GROUP FILE..."
158#define chgrp_full_usage \
159 "Change the group membership of each FILE to GROUP.\n" \
160 "\nOptions:\n" \
161 "\t-R\tChanges files and directories recursively."
162#define chgrp_example_usage \
163 "$ ls -l /tmp/foo\n" \
164 "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
165 "$ chgrp root /tmp/foo\n" \
166 "$ ls -l /tmp/foo\n" \
167 "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n"
168
169#define chmod_trivial_usage \
170 "[-R] MODE[,MODE]... FILE..."
171#define chmod_full_usage \
172 "Each MODE is one or more of the letters ugoa, one of the\n" \
173 "symbols +-= and one or more of the letters rwxst.\n\n" \
174 "Options:\n" \
175 "\t-R\tChanges files and directories recursively."
176#define chmod_example_usage \
177 "$ ls -l /tmp/foo\n" \
178 "-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" \
179 "$ chmod u+x /tmp/foo\n" \
180 "$ ls -l /tmp/foo\n" \
181 "-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*\n" \
182 "$ chmod 444 /tmp/foo\n" \
183 "$ ls -l /tmp/foo\n" \
184 "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
185
186#define chown_trivial_usage \
187 "[ -Rh ]... OWNER[<.|:>[GROUP]] FILE..."
188#define chown_full_usage \
189 "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
190 "\nOptions:\n" \
191 "\t-R\tChanges files and directories recursively.\n" \
192 "\t-h\tDo not dereference symbolic links."
193#define chown_example_usage \
194 "$ ls -l /tmp/foo\n" \
195 "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \
196 "$ chown root /tmp/foo\n" \
197 "$ ls -l /tmp/foo\n" \
198 "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \
199 "$ chown root.root /tmp/foo\n" \
200 "ls -l /tmp/foo\n" \
201 "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n"
202
203#define chroot_trivial_usage \
204 "NEWROOT [COMMAND...]"
205#define chroot_full_usage \
206 "Run COMMAND with root directory set to NEWROOT."
207#define chroot_example_usage \
208 "$ ls -l /bin/ls\n" \
209 "lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
210 "# mount /dev/hdc1 /mnt -t minix\n" \
211 "# chroot /mnt\n" \
212 "# ls -l /bin/ls\n" \
213 "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n"
214
215#define chvt_trivial_usage \
216 "N"
217#define chvt_full_usage \
218 "Changes the foreground virtual terminal to /dev/ttyN"
219
220#define clear_trivial_usage \
221 ""
222#define clear_full_usage \
223 "Clear screen."
224
225#define cmp_trivial_usage \
226 "[-l] [-s] FILE1 [FILE2]"
227#define cmp_full_usage \
228 "Compare files. Compares FILE1 vs stdin if FILE2 is not specified.\n\n" \
229 "Options:\n" \
230 "\t-l\tWrite the byte numbers (decimal) and values (octal)\n" \
231 "\t\t for all differing bytes.\n" \
232 "\t-s\tquiet mode - do not print"
233
234#define cp_trivial_usage \
235 "[OPTION]... SOURCE DEST"
236#define cp_full_usage \
237 "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \
238 "\n" \
239 "\t-a\tSame as -dpR\n" \
240 "\t-d\tPreserves links\n" \
241 "\t-p\tPreserves file attributes if possible\n" \
242 "\t-f\tforce (implied; ignored) - always set\n" \
243 "\t-i\tinteractive, prompt before overwrite\n" \
244 "\t-R,-r\tCopies directories recursively"
245
246#define cpio_trivial_usage \
247 "-[dimtuv][F cpiofile]"
248#define cpio_full_usage \
249 "Extract or list files from a cpio archive\n" \
250 "Main operation mode:\n" \
251 "\td\t\tmake leading directories\n" \
252 "\ti\t\textract\n" \
253 "\tm\t\tpreserve mtime\n" \
254 "\tt\t\tlist\n" \
255 "\tv\t\tverbose\n" \
256 "\tu\t\tunconditional overwrite\n" \
257 "\tF\t\tinput from file"
258
259#define crond_trivial_usage \
260 "-d[#] -c <crondir> -f -b"
261#define crond_full_usage \
262 "\t-d [#] -l [#] -S -L logfile -f -b -c dir\n" \
263 "\t-d num\tdebug level\n" \
264 "\t-l num\tlog level (8 - default)\n" \
265 "\t-S\tlog to syslogd (default)\n" \
266 "\t-L file\tlog to file\n" \
267 "\t-f\trun in fordeground\n" \
268 "\t-b\trun in background (default)\n" \
269 "\t-c dir\tworking dir"
270
271#define crontab_trivial_usage \
272 "[-c dir] {file|-}|[-u|-l|-e|-d user]"
273#define crontab_full_usage \
274 "\tfile <opts> replace crontab from file\n" \
275 "\t- <opts> replace crontab from stdin\n" \
276 "\t-u user specify user\n" \
277 "\t-l [user] list crontab for user\n" \
278 "\t-e [user] edit crontab for user\n" \
279 "\t-d [user] delete crontab for user\n" \
280 "\t-c dir specify crontab directory"
281
282
283#define cut_trivial_usage \
284 "[OPTION]... [FILE]..."
285#define cut_full_usage \
286 "Prints selected fields from each input FILE to standard output.\n\n" \
287 "Options:\n" \
288 "\t-b LIST\t\tOutput only bytes from LIST\n" \
289 "\t-c LIST\t\tOutput only characters from LIST\n" \
290 "\t-d CHAR\t\tUse CHAR instead of tab as the field delimiter\n" \
291 "\t-s\t\tOutput only the lines containing delimiter\n" \
292 "\t-f N\t\tPrint only these fields\n" \
293 "\t-n\t\tIgnored"
294#define cut_example_usage \
295 "$ echo "Hello world" | cut -f 1 -d ' '\n" \
296 "Hello\n" \
297 "$ echo "Hello world" | cut -f 2 -d ' '\n" \
298 "world\n"
299
300#ifdef CONFIG_FEATURE_DATE_ISOFMT
301#define USAGE_DATE_ISOFMT(a) a
302#else
303#define USAGE_DATE_ISOFMT(a)
304#endif
305
306#define date_trivial_usage \
307 "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"
308#define date_full_usage \
309 "Displays the current time in the given FORMAT, or sets the system date.\n" \
310 "\nOptions:\n" \
311 "\t-R\t\tOutputs RFC-822 compliant date string\n" \
312 "\t-d STRING\tDisplays time described by STRING, not `now'\n" \
313 USAGE_DATE_ISOFMT("\t-I[TIMESPEC]\tOutputs an ISO-8601 compliant date/time string.\n" \
314 "\t\t\tTIMESPEC=`date' (or missing) for date only,\n" \
315 "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \
316 "\t\t\ttime to the indicated precision.\n") \
317 "\t-s\t\tSets time described by STRING\n" \
318 "\t-r FILE\t\tDisplays the last modification time of FILE\n" \
319 "\t-u\t\tPrints or sets Coordinated Universal Time"
320#define date_example_usage \
321 "$ date\n" \
322 "Wed Apr 12 18:52:41 MDT 2000\n"
323
324#define dc_trivial_usage \
325 "expression ..."
326#define dc_full_usage \
327 "This is a Tiny RPN calculator that understands the\n" \
328 "following operations: +, add, -, sub, *, mul, /, div, %, mod, "\
329 "**, exp, and, or, not, eor.\n" \
330 "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16.\n" \
331 "\nOptions:\n" \
332 "p - Prints the value on the top of the stack, without altering the stack.\n" \
333 "f - Prints the entire contents of the stack without altering anything.\n" \
334 "o - Pops the value off the top of the stack and uses it to set the output radix.\n" \
335 " Only 10 and 16 are supported."
336#define dc_example_usage \
337 "$ dc 2 2 + p\n" \
338 "4\n" \
339 "$ dc 8 8 \\* 2 2 + / p\n" \
340 "16\n" \
341 "$ dc 0 1 and p\n" \
342 "0\n" \
343 "$ dc 0 1 or p\n" \
344 "1\n" \
345 "$ echo 72 9 div 8 mul p | dc\n" \
346 "64\n"
347
348#define dd_trivial_usage \
349 "[if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]\n" \
350 "\t [seek=N] [conv=notrunc|noerror|sync]"
351#define dd_full_usage \
352 "Copy a file, converting and formatting according to options\n\n" \
353 "\tif=FILE\t\tread from FILE instead of stdin\n" \
354 "\tof=FILE\t\twrite to FILE instead of stdout\n" \
355 "\tbs=N\t\tread and write N bytes at a time\n" \
356 "\tcount=N\t\tcopy only N input blocks\n" \
357 "\tskip=N\t\tskip N input blocks\n" \
358 "\tseek=N\t\tskip N output blocks\n" \
359 "\tconv=notrunc\tdon't truncate output file\n" \
360 "\tconv=noerror\tcontinue after read errors\n" \
361 "\tconv=sync\tpad blocks with zeros\n" \
362 "\n" \
363 "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \
364 "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)."
365#define dd_example_usage \
366 "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
367 "4+0 records in\n" \
368 "4+0 records out\n"
369
370#define deallocvt_trivial_usage \
371 "[N]"
372#define deallocvt_full_usage \
373 "Deallocate unused virtual terminal /dev/ttyN"
374
375#define delgroup_trivial_usage \
376 "GROUP"
377#define delgroup_full_usage \
378 "Deletes group GROUP from the system"
379
380#define deluser_trivial_usage \
381 "USER"
382#define deluser_full_usage \
383 "Deletes user USER from the system"
384
385#ifdef CONFIG_DEVFSD_FG_NP
386 #define USAGE_DEVFSD_FG_NP(a) a
387#else
388 #define USAGE_DEVFSD_FG_NP(a)
389#endif
390
391#define devfsd_trivial_usage \
392 "mntpnt [-v]"\
393 USAGE_DEVFSD_FG_NP("[-fg][-np]" )
394#define devfsd_full_usage \
395 "Optional daemon for managing devfs permissions and old device name symlinks.\n" \
396 "\nOptions:\n" \
397 "\tmntpnt\tThe mount point where devfs is mounted.\n\n" \
398 "\t-v\tPrint the protocol version numbers for devfsd\n" \
399 "\t\tand the kernel-side protocol version and exits." \
400 USAGE_DEVFSD_FG_NP( "\n\n\t-fg\tRun the daemon in the foreground.\n\n" \
401 "\t-np\tExit after parsing the configuration file\n" \
402 "\t\tand processing synthetic REGISTER events.\n" \
403 "\t\tDo not poll for events.")
404
405#ifdef CONFIG_FEATURE_HUMAN_READABLE
406 #define USAGE_HUMAN_READABLE(a) a
407 #define USAGE_NOT_HUMAN_READABLE(a)
408#else
409 #define USAGE_HUMAN_READABLE(a)
410 #define USAGE_NOT_HUMAN_READABLE(a) a
411#endif
412#define df_trivial_usage \
413 "[-" USAGE_HUMAN_READABLE("hm") USAGE_NOT_HUMAN_READABLE("") "k] [FILESYSTEM ...]"
414#define df_full_usage \
415 "Print the filesystem space used and space available.\n\n" \
416 "Options:\n" \
417 USAGE_HUMAN_READABLE( \
418 "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
419 "\t-m\tprint sizes in megabytes\n" \
420 "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \
421 "\n\t-k\tprint sizes in kilobytes(compatibility)")
422#define df_example_usage \
423 "$ df\n" \
424 "Filesystem 1k-blocks Used Available Use% Mounted on\n" \
425 "/dev/sda3 8690864 8553540 137324 98% /\n" \
426 "/dev/sda1 64216 36364 27852 57% /boot\n" \
427 "$ df /dev/sda3\n" \
428 "Filesystem 1k-blocks Used Available Use% Mounted on\n" \
429 "/dev/sda3 8690864 8553540 137324 98% /\n"
430
431#define dirname_trivial_usage \
432 "FILENAME"
433#define dirname_full_usage \
434 "Strips non-directory suffix from FILENAME"
435#define dirname_example_usage \
436 "$ dirname /tmp/foo\n" \
437 "/tmp\n" \
438 "$ dirname /tmp/foo/\n" \
439 "/tmp\n"
440
441#define dmesg_trivial_usage \
442 "[-c] [-n LEVEL] [-s SIZE]"
443#define dmesg_full_usage \
444 "Prints or controls the kernel ring buffer\n\n" \
445 "Options:\n" \
446 "\t-c\t\tClears the ring buffer's contents after printing\n" \
447 "\t-n LEVEL\tSets console logging level\n" \
448 "\t-s SIZE\t\tUse a buffer of size SIZE"
449
450#define dos2unix_trivial_usage \
451 "[option] [FILE]"
452#define dos2unix_full_usage \
453 "Converts FILE from dos format to unix format. When no option\n" \
454 "is given, the input is converted to the opposite output format.\n" \
455 "When no file is given, uses stdin for input and stdout for output.\n\n" \
456 "Options:\n" \
457 "\t-u\toutput will be in UNIX format\n" \
458 "\t-d\toutput will be in DOS format"
459
460#define dpkg_trivial_usage \
461 "[-ilCPru] [-F option] package_name"
462#define dpkg_full_usage \
463 "dpkg is a utility to install, remove and manage Debian packages.\n\n" \
464 "Options:\n" \
465 "\t-i\t\tInstall the package\n" \
466 "\t-l\t\tList of installed packages\n" \
467 "\t-C\t\tConfigure an unpackaged package\n" \
468 "\t-F depends\tIgnore depency problems\n" \
469 "\t-P\t\tPurge all files of a package\n" \
470 "\t-r\t\tRemove all but the configuration files for a package\n" \
471 "\t-u\t\tUnpack a package, but don't configure it"
472
473#define dpkg_deb_trivial_usage \
474 "[-cefxX] FILE [argument]"
475#define dpkg_deb_full_usage \
476 "Perform actions on Debian packages (.debs)\n\n" \
477 "Options:\n" \
478 "\t-c\tList contents of filesystem tree\n" \
479 "\t-e\tExtract control files to [argument] directory\n" \
480 "\t-f\tDisplay control field name starting with [argument]\n" \
481 "\t-x\tExtract packages filesystem tree to directory\n" \
482 "\t-X\tVerbose extract"
483#define dpkg_deb_example_usage \
484 "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
485
486#ifdef CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K
487#define USAGE_DU_DEFALT_BLOCKSIZE_1k(a) a
488#define USAGE_NOT_DU_DEFALT_BLOCKSIZE_1k(a)
489#else
490#define USAGE_DU_DEFALT_BLOCKSIZE_1k(a)
491#define USAGE_NOT_DU_DEFALT_BLOCKSIZE_1k(a) a
492#endif
493
494#define du_trivial_usage \
495 "[-aHLdclsx" USAGE_HUMAN_READABLE("hm") "k] [FILE]..."
496#define du_full_usage \
497 "Summarizes disk space used for each FILE and/or directory.\n" \
498 "Disk space is printed in units of " \
499 USAGE_DU_DEFALT_BLOCKSIZE_1k("1024") USAGE_NOT_DU_DEFALT_BLOCKSIZE_1k("512") \
500 " bytes.\n\n" \
501 "Options:\n" \
502 "\t-a\tshow sizes of files in addition to directories\n" \
503 "\t-H\tfollow symbolic links that are FILE command line args\n" \
504 "\t-L\tfollow all symbolic links encountered\n" \
505 "\t-d N\tlimit output to directories (and files with -a) of depth < N\n" \
506 "\t-c\toutput a grand total\n" \
507 "\t-l\tcount sizes many times if hard linked\n" \
508 "\t-s\tdisplay only a total for each argument\n" \
509 "\t-x\tskip directories on different filesystems\n" \
510 USAGE_HUMAN_READABLE( \
511 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
512 "\t-m\tprint sizes in megabytes\n" ) \
513 "\t-k\tprint sizes in kilobytes" USAGE_DU_DEFALT_BLOCKSIZE_1k("(default)")
514#define du_example_usage \
515 "$ du\n" \
516 "16 ./CVS\n" \
517 "12 ./kernel-patches/CVS\n" \
518 "80 ./kernel-patches\n" \
519 "12 ./tests/CVS\n" \
520 "36 ./tests\n" \
521 "12 ./scripts/CVS\n" \
522 "16 ./scripts\n" \
523 "12 ./docs/CVS\n" \
524 "104 ./docs\n" \
525 "2417 .\n"
526
527#define dumpkmap_trivial_usage \
528 "> keymap"
529#define dumpkmap_full_usage \
530 "Prints out a binary keyboard translation table to standard output."
531#define dumpkmap_example_usage \
532 "$ dumpkmap > keymap\n"
533
534#define dumpleases_trivial_usage \
535 "[-r|-a] [-f LEASEFILE]"
536#define dumpleases_full_usage \
537 "Displays the DHCP leases granted by udhcpd.\n\n" \
538 "Options:\n" \
539 "\t-f,\t--file=FILENAME\tLeases file to load\n" \
540 "\t-r,\t--remaining\tInterpret lease times as time remaing\n" \
541 "\t-a,\t--absolute\tInterpret lease times as expire time"
542
543#ifdef CONFIG_FEATURE_FANCY_ECHO
544 #define USAGE_FANCY_ECHO(a) a
545#else
546 #define USAGE_FANCY_ECHO(a)
547#endif
548
549#define echo_trivial_usage \
550 USAGE_FANCY_ECHO("[-neE] ") "[ARG ...]"
551#define echo_full_usage \
552 "Prints the specified ARGs to stdout\n\n" \
553 USAGE_FANCY_ECHO("Options:\n" \
554 "\t-n\tsuppress trailing newline\n" \
555 "\t-e\tinterpret backslash-escaped characters (i.e., \\t=tab)\n" \
556 "\t-E\tdisable interpretation of backslash-escaped characters")
557#define echo_example_usage \
558 "$ echo "Erik is cool"\n" \
559 "Erik is cool\n" \
560 USAGE_FANCY_ECHO("$ echo -e "Erik\\nis\\ncool"\n" \
561 "Erik\n" \
562 "is\n" \
563 "cool\n" \
564 "$ echo "Erik\\nis\\ncool"\n" \
565 "Erik\\nis\\ncool\n")
566
567#define env_trivial_usage \
568 "[-iu] [-] [name=value]... [command]"
569#define env_full_usage \
570 "Prints the current environment or runs a program after setting\n" \
571 "up the specified environment.\n\n" \
572 "Options:\n" \
573 "\t-, -i\tstart with an empty environment\n" \
574 "\t-u\tremove variable from the environment"
575
576#define expr_trivial_usage \
577 "EXPRESSION"
578#define expr_full_usage \
579 "Prints the value of EXPRESSION to standard output.\n\n" \
580 "EXPRESSION may be:\n" \
581 "\tARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
582 "\tARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
583 "\tARG1 < ARG2 ARG1 is less than ARG2\n" \
584 "\tARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \
585 "\tARG1 = ARG2 ARG1 is equal to ARG2\n" \
586 "\tARG1 != ARG2 ARG1 is unequal to ARG2\n" \
587 "\tARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \
588 "\tARG1 > ARG2 ARG1 is greater than ARG2\n" \
589 "\tARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" \
590 "\tARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" \
591 "\tARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \
592 "\tARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \
593 "\tARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \
594 "\tSTRING : REGEXP anchored pattern match of REGEXP in STRING\n" \
595 "\tmatch STRING REGEXP same as STRING : REGEXP\n" \
596 "\tsubstr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
597 "\tindex STRING CHARS index in STRING where any CHARS is found,\n" \
598 "\t or 0\n" \
599 "\tlength STRING length of STRING\n" \
600 "\tquote TOKEN interpret TOKEN as a string, even if\n" \
601 "\t it is a keyword like `match' or an\n" \
602 "\t operator like `/'\n" \
603 "\t( EXPRESSION ) value of EXPRESSION\n\n" \
604 "Beware that many operators need to be escaped or quoted for shells.\n" \
605 "Comparisons are arithmetic if both ARGs are numbers, else\n" \
606 "lexicographical. Pattern matches return the string matched between \n" \
607 "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \
608 "of characters matched or 0."
609
610#define false_trivial_usage \
611 ""
612#define false_full_usage \
613 "Return an exit code of FALSE (1)."
614#define false_example_usage \
615 "$ false\n" \
616 "$ echo $?\n" \
617 "1\n"
618
619#define fbset_trivial_usage \
620 "[options] [mode]"
621#define fbset_full_usage \
622 "Show and modify frame buffer settings"
623#define fbset_example_usage \
624 "$ fbset\n" \
625 "mode "1024x768-76"\n" \
626 "\t# D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
627 "\tgeometry 1024 768 1024 768 16\n" \
628 "\ttimings 12714 128 32 16 4 128 4\n" \
629 "\taccel false\n" \
630 "\trgba 5/11,6/5,5/0,0/0\n" \
631 "endmode\n"
632
633#define fdflush_trivial_usage \
634 "DEVICE"
635#define fdflush_full_usage \
636 "Forces floppy disk drive to detect disk change"
637
638#define fdformat_trivial_usage \
639 "[-n] DEVICE"
640#define fdformat_full_usage \
641 "Low-level formats a floppy disk\n\n" \
642 "Options:\n" \
643 "\t-n\tDon't verify after format"
644
645#define fdisk_trivial_usage \
646 "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
647#define fdisk_full_usage \
648 "Change partition table\n" \
649 "Options:\n" \
650 "\t-l List partition table(s)\n" \
651 "\t-u Give Start and End in sector (instead of cylinder) units\n" \
652 "\t-s PARTITION Give partition size(s) in blocks\n" \
653 "\t-b 2048: (for certain MO disks) use 2048-byte sectors\n" \
654 "\t-C CYLINDERS Set the number of cylinders\n" \
655 "\t-H HEADS Set the number of heads\n" \
656 "\t-S SECTORS Set the number of sectors\n" \
657 "\t-v Give fdisk version"
658
659#ifdef CONFIG_FEATURE_FIND_TYPE
660 #define USAGE_FIND_TYPE(a) a
661#else
662 #define USAGE_FIND_TYPE(a)
663#endif
664#ifdef CONFIG_FEATURE_FIND_PERM
665 #define USAGE_FIND_PERM(a) a
666#else
667 #define USAGE_FIND_PERM(a)
668#endif
669#ifdef CONFIG_FEATURE_FIND_MTIME
670 #define USAGE_FIND_MTIME(a) a
671#else
672 #define USAGE_FIND_MTIME(a)
673#endif
674#ifdef CONFIG_FEATURE_FIND_NEWER
675 #define USAGE_FIND_NEWER(a) a
676#else
677 #define USAGE_FIND_NEWER(a)
678#endif
679#ifdef CONFIG_FEATURE_FIND_INUM
680 #define USAGE_FIND_INUM(a) a
681#else
682 #define USAGE_FIND_INUM(a)
683#endif
684
685#define find_trivial_usage \
686 "[PATH...] [EXPRESSION]"
687#define find_full_usage \
688 "Search for files in a directory hierarchy. The default PATH is\n" \
689 "the current directory; default EXPRESSION is '-print'\n" \
690 "\nEXPRESSION may consist of:\n" \
691 "\t-follow\t\tDereference symbolic links.\n" \
692 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \
693 "\t-print\t\tPrint (default and assumed).\n" \
694 USAGE_FIND_TYPE( \
695 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
696) USAGE_FIND_PERM( \
697 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \
698) USAGE_FIND_MTIME( \
699 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days" \
700) USAGE_FIND_NEWER( \
701 "\n\t-newer FILE\tModified time is more recent than FILE's" \
702) USAGE_FIND_INUM( \
703 "\n\t-inum N\t\tFile has inode number N")
704#define find_example_usage \
705 "$ find / -name passwd\n" \
706 "/etc/passwd\n"
707
708#define fold_trivial_usage \
709 "[-bsw] [FILE]"
710#define fold_full_usage \
711 "Wrap input lines in each FILE (standard input by default), writing to\n" \
712 "standard output.\n\n" \
713 "Options:\n" \
714 "\t-b\tcount bytes rather than columns\n" \
715 "\t-s\tbreak at spaces\n" \
716 "\t-w\tuse WIDTH columns instead of 80"
717
718#define free_trivial_usage \
719 ""
720#define free_full_usage \
721 "Displays the amount of free and used system memory"
722#define free_example_usage \
723 "$ free\n" \
724 " total used free shared buffers\n" \
725 " Mem: 257628 248724 8904 59644 93124\n" \
726 " Swap: 128516 8404 120112\n" \
727 "Total: 386144 257128 129016\n" \
728
729#define freeramdisk_trivial_usage \
730 "DEVICE"
731#define freeramdisk_full_usage \
732 "Frees all memory used by the specified ramdisk."
733#define freeramdisk_example_usage \
734 "$ freeramdisk /dev/ram2\n"
735
736#define fsck_minix_trivial_usage \
737 "[-larvsmf] /dev/name"
738#define fsck_minix_full_usage \
739 "Performs a consistency check for MINIX filesystems.\n\n" \
740 "Options:\n" \
741 "\t-l\tLists all filenames\n" \
742 "\t-r\tPerform interactive repairs\n" \
743 "\t-a\tPerform automatic repairs\n" \
744 "\t-v\tverbose\n" \
745 "\t-s\tOutputs super-block information\n" \
746 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \
747 "\t-f\tForce file system check."
748
749#define ftpget_trivial_usage \
750 "[options] remote-host local-file remote-file"
751#define ftpget_full_usage \
752 "Retrieve a remote file via FTP.\n\n" \
753 "Options:\n" \
754 "\t-c, --continue Continue a previous transfer\n" \
755 "\t-v, --verbose Verbose\n" \
756 "\t-u, --username Username to be used\n" \
757 "\t-p, --password Password to be used\n" \
758 "\t-P, --port Port number to be used"
759
760#define ftpput_trivial_usage \
761 "[options] remote-host remote-file local-file"
762#define ftpput_full_usage \
763 "Store a local file on a remote machine via FTP.\n\n" \
764 "Options:\n" \
765 "\t-v, --verbose Verbose\n" \
766 "\t-u, --username Username to be used\n" \
767 "\t-p, --password Password to be used\n" \
768 "\t-P, --port Port number to be used"
769
770#define getopt_trivial_usage \
771 "[OPTIONS]..."
772#define getopt_full_usage \
773 "Parse command options\n" \
774 "\t-a, --alternative Allow long options starting with single -\n" \
775 "\t-l, --longoptions=longopts Long options to be recognized\n" \
776 "\t-n, --name=progname The name under which errors are reported\n" \
777 "\t-o, --options=optstring Short options to be recognized\n" \
778 "\t-q, --quiet Disable error reporting by getopt(3)\n" \
779 "\t-Q, --quiet-output No normal output\n" \
780 "\t-s, --shell=shell Set shell quoting conventions\n" \
781 "\t-T, --test Test for getopt(1) version\n" \
782 "\t-u, --unquoted Do not quote the output"
783#define getopt_example_usage \
784 "$ cat getopt.test\n" \
785 "#!/bin/sh\n" \
786 "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
787 " -n 'example.busybox' -- "$@"`\n" \
788 "if [ $? != 0 ] ; then exit 1 ; fi\n" \
789 "eval set -- "$GETOPT"\n" \
790 "while true ; do\n" \
791 " case $1 in\n" \
792 " -a|--a-long) echo \"Option a\" ; shift ;;\n" \
793 " -b|--b-long) echo \"Option b, argument `$2'\" ; shift 2 ;;\n" \
794 " -c|--c-long)\n" \
795 " case "$2" in\n" \
796 " \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \
797 " *) echo \"Option c, argument `$2'\" ; shift 2 ;;\n" \
798 " esac ;;\n" \
799 " --) shift ; break ;;\n" \
800 " *) echo \"Internal error!\" ; exit 1 ;;\n" \
801 " esac\n" \
802 "done\n"
803
804
805#define getpkg_trivial_usage \
806 "[-afk] [PACKAGE] {[URL] | [DIR]}"
807#define getpkg_full_usage \
808 "Install a Trinux PACKAGE from a FILE or an URL ." \
809 "\t-a,\t\tget all packages\n" \
810 "\t-f,\t\tpackage file, no need to download\n" \
811 "\t-k,\t\tkernel package"
812#define getpkg_example_usage \
813 "$ getpkg\n" \
814 "$ getpkg -a\n" \
815 "$ getpkg -f name\n" \
816 "$ getpkg -fk name /media/cdrom/trinux/pkg\n" \
817 "$ getpkg -k name\n" \
818 "$ getpkg name http://www.trinux.org/pkg/\n"
819
820
821#define getty_trivial_usage \
822 "[OPTIONS]... baud_rate,... line [termtype]"
823#define getty_full_usage \
824 "Opens a tty, prompts for a login name, then invokes /bin/login\n\n" \
825 "Options:\n" \
826 "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \
827 "\t-i\t\tDo not display /etc/issue before running login.\n" \
828 "\t-L\t\tLocal line, so do not do carrier detect.\n" \
829 "\t-m\t\tGet baud rate from modem's CONNECT status message.\n" \
830 "\t-w\t\tWait for a CR or LF before sending /etc/issue.\n" \
831 "\t-n\t\tDo not prompt the user for a login name.\n" \
832 "\t-f issue_file\tDisplay issue_file instead of /etc/issue.\n" \
833 "\t-l login_app\tInvoke login_app instead of /bin/login.\n" \
834 "\t-t timeout\tTerminate after timeout if no username is read.\n" \
835 "\t-I initstring\tSets the init string to send before anything else.\n" \
836 "\t-H login_host\tLog login_host into the utmp file as the hostname."
837
838
839#define grep_trivial_usage \
840 "[-ihHnqvs] PATTERN [FILEs...]"
841#define grep_full_usage \
842 "Search for PATTERN in each FILE or standard input.\n\n" \
843 "Options:\n" \
844 "\t-H\tprefix output lines with filename where match was found\n" \
845 "\t-h\tsuppress the prefixing filename on output\n" \
846 "\t-i\tignore case distinctions\n" \
847 "\t-l\tlist names of files that match\n" \
848 "\t-n\tprint line number with output lines\n" \
849 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \
850 "\t-v\tselect non-matching lines\n" \
851 "\t-s\tsuppress file open/read error messages"
852#define grep_example_usage \
853 "$ grep root /etc/passwd\n" \
854 "root:x:0:0:root:/root:/bin/bash\n" \
855 "$ grep ^[rR]oo. /etc/passwd\n" \
856 "root:x:0:0:root:/root:/bin/bash\n"
857
858#define gunzip_trivial_usage \
859 "[OPTION]... FILE"
860#define gunzip_full_usage \
861 "Uncompress FILE (or standard input if FILE is '-').\n\n" \
862 "Options:\n" \
863 "\t-c\tWrite output to standard output\n" \
864 "\t-f\tForce read when source is a terminal\n" \
865 "\t-t\tTest compressed file integrity"
866#define gunzip_example_usage \
867 "$ ls -la /tmp/BusyBox*\n" \
868 "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
869 "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
870 "$ ls -la /tmp/BusyBox*\n" \
871 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
872
873#define gzip_trivial_usage \
874 "[OPTION]... [FILE]..."
875#define gzip_full_usage \
876 "Compress FILE(s) with maximum compression.\n" \
877 "When FILE is '-' or unspecified, reads standard input. Implies -c.\n\n" \
878 "Options:\n" \
879 "\t-c\tWrite output to standard output instead of FILE.gz\n" \
880 "\t-d\tDecompress\n" \
881 "\t-f\tForce write when destination is a terminal"
882#define gzip_example_usage \
883 "$ ls -la /tmp/busybox*\n" \
884 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
885 "$ gzip /tmp/busybox.tar\n" \
886 "$ ls -la /tmp/busybox*\n" \
887 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
888
889#define halt_trivial_usage \
890 "[-d<delay>]"
891#define halt_full_usage \
892 "Halt the system.\n" \
893 "Options:\n" \
894 "\t-d\t\tdelay interval for halting."
895
896#ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
897#define USAGE_HDPARM_IDENT(a) a
898#else
899#define USAGE_HDPARM_IDENT(a)
900#endif
901
902#ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
903#define USAGE_SCAN_HWIF(a) a
904#else
905#define USAGE_SCAN_HWIF(a)
906#endif
907
908#ifdef CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
909#define USAGE_UNREGISTER_HWIF(a) a
910#else
911#define USAGE_UNREGISTER_HWIF(a)
912#endif
913
914#ifdef CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET
915#define USAGE_DRIVE_RESET(a) a
916#else
917#define USAGE_DRIVE_RESET(a)
918#endif
919
920#ifdef CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF
921#define USAGE_TRISTATE_HWIF(a) a
922#else
923#define USAGE_TRISTATE_HWIF(a)
924#endif
925
926#ifdef CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA
927#define USAGE_GETSET_DMA(a) a
928#else
929#define USAGE_GETSET_DMA(a)
930#endif
931
932#define hdparm_trivial_usage \
933 "[options] [device] .."
934#define hdparm_full_usage \
935 "Options:" \
936 "\t-a get/set fs readahead\n" \
937 "\t-A set drive read-lookahead flag (0/1)\n" \
938 "\t-b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \
939 "\t-B set Advanced Power Management setting (1-255)\n" \
940 "\t-c get/set IDE 32-bit IO setting\n" \
941 "\t-C check IDE power mode status\n" \
942 USAGE_GETSET_DMA("\t-d get/set using_dma flag\n") \
943 "\t-D enable/disable drive defect-mgmt\n" \
944 "\t-f flush buffer cache for device on exit\n" \
945 "\t-g display drive geometry\n" \
946 "\t-h display terse usage information\n" \
947 "\t-i display drive identification\n" \
948 USAGE_HDPARM_IDENT("\t-I detailed/current information directly from drive\n") \
949 USAGE_HDPARM_IDENT("\t-Istdin similar to -I, but wants /proc/ide/" "*" "/hd?/identify as input\n") \
950 "\t-k get/set keep_settings_over_reset flag (0/1)\n" \
951 "\t-K set drive keep_features_over_reset flag (0/1)\n" \
952 "\t-L set drive doorlock (0/1) (removable harddisks only)\n" \
953 "\t-m get/set multiple sector count\n" \
954 "\t-n get/set ignore-write-errors flag (0/1)\n" \
955 "\t-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \
956 "\t-P set drive prefetch count\n" \
957 "\t-q change next setting quietly\n" \
958 "\t-Q get/set DMA tagged-queuing depth (if supported)\n" \
959 "\t-r get/set readonly flag (DANGEROUS to set)\n" \
960 USAGE_SCAN_HWIF("\t-R register an IDE interface (DANGEROUS)\n") \
961 "\t-S set standby (spindown) timeout\n" \
962 "\t-t perform device read timings\n" \
963 "\t-T perform cache read timings\n" \
964 "\t-u get/set unmaskirq flag (0/1)\n" \
965 USAGE_UNREGISTER_HWIF("\t-U un-register an IDE interface (DANGEROUS)\n") \
966 "\t-v defaults; same as -mcudkrag for IDE drives\n" \
967 "\t-V display program version and exit immediately\n" \
968 USAGE_DRIVE_RESET("\t-w perform device reset (DANGEROUS)\n") \
969 "\t-W set drive write-caching flag (0/1) (DANGEROUS)\n" \
970 USAGE_TRISTATE_HWIF("\t-x tristate device for hotswap (0/1) (DANGEROUS)\n") \
971 "\t-X set IDE xfer mode (DANGEROUS)\n" \
972 "\t-y put IDE drive in standby mode\n" \
973 "\t-Y put IDE drive to sleep\n" \
974 "\t-Z disable Seagate auto-powersaving mode\n" \
975 "\t-z re-read partition table"
976
977#ifdef CONFIG_FEATURE_FANCY_HEAD
978#define USAGE_FANCY_HEAD(a) a
979#else
980#define USAGE_FANCY_HEAD(a)
981#endif
982
983#define head_trivial_usage \
984 "[OPTION]... [FILE]..."
985#define head_full_usage \
986 "Print first 10 lines of each FILE to standard output.\n" \
987 "With more than one FILE, precede each with a header giving the\n" \
988 "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
989 "Options:\n" \
990 "\t-n NUM\t\tPrint first NUM lines instead of first 10" \
991 USAGE_FANCY_HEAD( \
992 "\n\t-c NUM\t\toutput the first NUM bytes\n" \
993 "\t-q\t\tnever output headers giving file names\n" \
994 "\t-v\t\talways output headers giving file names" )
995#define head_example_usage \
996 "$ head -n 2 /etc/passwd\n" \
997 "root:x:0:0:root:/root:/bin/bash\n" \
998 "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
999
1000#define hexdump_trivial_usage \
1001 "[-[bcdefnosvx]] [OPTION] FILE"
1002#define hexdump_full_usage \
1003 "The hexdump utility is a filter which displays the specified files,\n" \
1004 "or the standard input, if no files are specified, in a user specified\n"\
1005 "format\n" \
1006 "\t-b\t\tOne-byte octal display\n" \
1007 "\t-c\t\tOne-byte character display\n" \
1008 "\t-d\t\tTwo-byte decimal display\n" \
1009 "\t-e FORMAT STRING\n" \
1010 "\t-f FORMAT FILE\n" \
1011 "\t-n LENGTH\tInterpret only length bytes of input\n" \
1012 "\t-o\t\tTwo-byte octal display\n" \
1013 "\t-s OFFSET\tSkip offset byte\n" \
1014 "\t-v\t\tdisplay all input data\n" \
1015 "\t-x\t\tTwo-byte hexadecimal display"
1016
1017#define hostid_trivial_usage \
1018 ""
1019#define hostid_full_usage \
1020 "Print out a unique 32-bit identifier for the machine."
1021
1022#define hostname_trivial_usage \
1023 "[OPTION] {hostname | -F FILE}"
1024#define hostname_full_usage \
1025 "Get or set the hostname or DNS domain name. If a hostname is given\n" \
1026 "(or FILE with the -F parameter), the host name will be set.\n\n" \
1027 "Options:\n" \
1028 "\t-s\tShort\n" \
1029 "\t-i\tAddresses for the hostname\n" \
1030 "\t-d\tDNS domain name\n" \
1031 "\t-f\tFully qualified domain name\n" \
1032 "\t-F FILE\tUse the contents of FILE to specify the hostname"
1033#define hostname_example_usage \
1034 "$ hostname\n" \
1035 "sage\n"
1036
1037#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH
1038 #define USAGE_HTTPD_BASIC_AUTH(a) a
1039 #ifdef CONFIG_FEATURE_HTTPD_AUTH_MD5
1040 #define USAGE_HTTPD_AUTH_MD5(a) a
1041 #else
1042 #define USAGE_HTTPD_AUTH_MD5(a)
1043 #endif
1044#else
1045 #define USAGE_HTTPD_BASIC_AUTH(a)
1046 #define USAGE_HTTPD_AUTH_MD5(a)
1047#endif
1048#ifdef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
1049 #define USAGE_HTTPD_STANDALONE(a)
1050 #define USAGE_HTTPD_SETUID(a)
1051#else
1052 #define USAGE_HTTPD_STANDALONE(a) a
1053 #ifdef CONFIG_FEATURE_HTTPD_SETUID
1054 #define USAGE_HTTPD_SETUID(a) a
1055 #else
1056 #define USAGE_HTTPD_SETUID(a)
1057 #endif
1058#endif
1059#define httpd_trivial_usage \
1060 "[-c <conf file>]" \
1061 USAGE_HTTPD_STANDALONE(" [-p <port>]") \
1062 USAGE_HTTPD_SETUID(" [-u user]") \
1063 USAGE_HTTPD_BASIC_AUTH(" [-r <realm>]") \
1064 USAGE_HTTPD_AUTH_MD5(" [-m pass]") \
1065 " [-h home]" \
1066 " [-d/-e <string>]"
1067#define httpd_full_usage \
1068 "Listens for incoming http server requests.\n\n"\
1069 "Options:\n" \
1070 "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \
1071 USAGE_HTTPD_STANDALONE("\t-p PORT\tServer port (default 80)\n") \
1072 USAGE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privileges port\n") \
1073 USAGE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \
1074 USAGE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \
1075 "\t-h HOME \tSpecifies http HOME directory (default ./)\n" \
1076 "\t-e STRING\tHtml encode STRING\n" \
1077 "\t-d STRING\tURL decode STRING"
1078
1079#define hwclock_trivial_usage \
1080 "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"
1081#define hwclock_full_usage \
1082 "Query and set the hardware clock (RTC)\n\n" \
1083 "Options:\n" \
1084 "\t-r\tread hardware clock and print result\n" \
1085 "\t-s\tset the system time from the hardware clock\n" \
1086 "\t-w\tset the hardware clock to the current system time\n" \
1087 "\t-u\tthe hardware clock is kept in coordinated universal time\n" \
1088 "\t-l\tthe hardware clock is kept in local time"
1089
1090#ifdef CONFIG_SELINUX
1091 #define USAGE_SELINUX(a) a
1092#else
1093 #define USAGE_SELINUX(a)
1094#endif
1095
1096#define id_trivial_usage \
1097 "[OPTIONS]... [USERNAME]"
1098#define id_full_usage \
1099 "Print information for USERNAME or the current user\n\n" \
1100 "Options:\n" \
1101 USAGE_SELINUX("\t-c\tprints only the security context\n") \
1102 "\t-g\tprints only the group ID\n" \
1103 "\t-u\tprints only the user ID\n" \
1104 "\t-n\tprint a name instead of a number\n" \
1105 "\t-r\tprints the real user ID instead of the effective ID"
1106#define id_example_usage \
1107 "$ id\n" \
1108 "uid=1000(andersen) gid=1000(andersen)\n"
1109
1110#ifdef CONFIG_FEATURE_IFCONFIG_SLIP
1111 #define USAGE_SIOCSKEEPALIVE(a) a
1112#else
1113 #define USAGE_SIOCSKEEPALIVE(a)
1114#endif
1115#ifdef CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
1116 #define USAGE_IFCONFIG_MII(a) a
1117#else
1118 #define USAGE_IFCONFIG_MII(a)
1119#endif
1120#ifdef CONFIG_FEATURE_IFCONFIG_HW
1121 #define USAGE_IFCONFIG_HW(a) a
1122#else
1123 #define USAGE_IFCONFIG_HW(a)
1124#endif
1125#ifdef CONFIG_FEATURE_IFCONFIG_STATUS
1126 #define USAGE_IFCONFIG_OPT_A(a) a
1127#else
1128 #define USAGE_IFCONFIG_OPT_A(a)
1129#endif
1130#ifdef CONFIG_FEATURE_IPV6
1131 #define USAGE_IPV6(a) a
1132#else
1133 #define USAGE_IPV6(a)
1134#endif
1135
1136#define ifconfig_trivial_usage \
1137 USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]"
1138#define ifconfig_full_usage \
1139 "configure a network interface\n\n" \
1140 "Options:\n" \
1141 USAGE_IPV6("[add <address>[/<prefixlen>]]\n") \
1142 USAGE_IPV6("[del <address>[/<prefixlen>]]\n") \
1143 "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \
1144 "\t[netmask <address>] [dstaddr <address>]\n" \
1145 USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \
1146 "\t" USAGE_IFCONFIG_HW("[hw ether <address>] ") \
1147 "[metric <NN>] [mtu <NN>]\n" \
1148 "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \
1149 "\t[multicast] [[-]promisc] [txqueuelen <NN>] [[-]dynamic]\n" \
1150 USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \
1151 "\t[up|down] ..."
1152
1153#define ifup_trivial_usage \
1154 "<-ahinv> <ifaces...>"
1155#define ifup_full_usage \
1156 "ifup <options> <ifaces...>\n\n" \
1157 "Options:\n" \
1158 "\t-h\tthis help\n" \
1159 "\t-a\tde/configure all interfaces automatically\n" \
1160 "\t-i FILE\tuse FILE for interface definitions\n" \
1161 "\t-n\tprint out what would happen, but don't do it\n" \
1162 "\t\t\t(note that this option doesn't disable mappings)\n" \
1163 "\t-v\tprint out what would happen before doing it\n" \
1164 "\t-m\tdon't run any mappings\n" \
1165 "\t-f\tforce de/configuration"
1166
1167#define ifdown_trivial_usage \
1168 "<-ahinv> <ifaces...>"
1169#define ifdown_full_usage \
1170 "ifdown <options> <ifaces...>\n\n" \
1171 "Options:\n" \
1172 "\t-h\tthis help\n" \
1173 "\t-a\tde/configure all interfaces automatically\n" \
1174 "\t-i FILE\tuse FILE for interface definitions\n" \
1175 "\t-n\tprint out what would happen, but don't do it\n" \
1176 "\t\t(note that this option doesn't disable mappings)\n" \
1177 "\t-v\tprint out what would happen before doing it\n" \
1178 "\t-m\tdon't run any mappings\n" \
1179 "\t-f\tforce de/configuration"
1180
1181#define inetd_trivial_usage \
1182 "[-q len] [conf]"
1183#define inetd_full_usage \
1184 "Listens for network connections and launches programs\n\n" \
1185 "Option:\n" \
1186 "\t-q\tSets the size of the socket listen queue to\n" \
1187 "\t\tthe specified value. Default is 128."
1188
1189#define init_trivial_usage \
1190 ""
1191#define init_full_usage \
1192 "Init is the parent of all processes."
1193#define init_notes_usage \
1194"This version of init is designed to be run only by the kernel.\n" \
1195"\n" \
1196"BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
1197"the /etc/inittab file is completely ignored by BusyBox init. If you want \n" \
1198"runlevels, use sysvinit.\n" \
1199"\n" \
1200"BusyBox init works just fine without an inittab. If no inittab is found, \n" \
1201"it has the following default behavior:\n" \
1202"\n" \
1203" ::sysinit:/etc/init.d/rcS\n" \
1204" ::askfirst:/bin/sh\n" \
1205" ::ctrlaltdel:/sbin/reboot\n" \
1206" ::shutdown:/sbin/swapoff -a\n" \
1207" ::shutdown:/bin/umount -a -r\n" \
1208" ::restart:/sbin/init\n" \
1209"\n" \
1210"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
1211"\n" \
1212" tty2::askfirst:/bin/sh\n" \
1213" tty3::askfirst:/bin/sh\n" \
1214" tty4::askfirst:/bin/sh\n" \
1215"\n" \
1216"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
1217"\n" \
1218" <id>:<runlevels>:<action>:<process>\n" \
1219"\n" \
1220" <id>:\n" \
1221"\n" \
1222" WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
1223" The id field is used by BusyBox init to specify the controlling tty for\n" \
1224" the specified process to run on. The contents of this field are\n" \
1225" appended to "/dev/" and used as-is. There is no need for this field to\n" \
1226" be unique, although if it isn't you may have strange results. If this\n" \
1227" field is left blank, the controlling tty is set to the console. Also\n" \
1228" note that if BusyBox detects that a serial console is in use, then only\n" \
1229" entries whose controlling tty is either the serial console or /dev/null\n" \
1230" will be run. BusyBox init does nothing with utmp. We don't need no\n" \
1231" stinkin' utmp.\n" \
1232"\n" \
1233" <runlevels>:\n" \
1234"\n" \
1235" The runlevels field is completely ignored.\n" \
1236"\n" \
1237" <action>:\n" \
1238"\n" \
1239" Valid actions include: sysinit, respawn, askfirst, wait,\n" \
1240" once, restart, ctrlaltdel, and shutdown.\n" \
1241"\n" \
1242" The available actions can be classified into two groups: actions\n" \
1243" that are run only once, and actions that are re-run when the specified\n" \
1244" process exits.\n" \
1245"\n" \
1246" Run only-once actions:\n" \
1247"\n" \
1248" 'sysinit' is the first item run on boot. init waits until all\n" \
1249" sysinit actions are completed before continuing. Following the\n" \
1250" completion of all sysinit actions, all 'wait' actions are run.\n" \
1251" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
1252" the specified task completes. 'once' actions are asynchronous,\n" \
1253" therefore, init does not wait for them to complete. 'restart' is\n" \
1254" the action taken to restart the init process. By default this should\n" \
1255" simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
1256" can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
1257" actions are run when the system detects that someone on the system\n" \
1258" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
1259" wants to run 'reboot' at this point to cause the system to reboot.\n" \
1260" Finally the 'shutdown' action specifies the actions to taken when\n" \
1261" init is told to reboot. Unmounting filesystems and disabling swap\n" \
1262" is a very good here\n" \
1263"\n" \
1264" Run repeatedly actions:\n" \
1265"\n" \
1266" 'respawn' actions are run after the 'once' actions. When a process\n" \
1267" started with a 'respawn' action exits, init automatically restarts\n" \
1268" it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
1269" respawning out of control. The 'askfirst' actions acts just like\n" \
1270" respawn, except that before running the specified process it\n" \
1271" displays the line "Please press Enter to activate this console."\n" \
1272" and then waits for the user to press enter before starting the\n" \
1273" specified process.\n" \
1274"\n" \
1275" Unrecognized actions (like initdefault) will cause init to emit an\n" \
1276" error message, and then go along with its business. All actions are\n" \
1277" run in the order they appear in /etc/inittab.\n" \
1278"\n" \
1279" <process>:\n" \
1280"\n" \
1281" Specifies the process to be executed and its command line.\n" \
1282"\n" \
1283"Example /etc/inittab file:\n" \
1284"\n" \
1285" # This is run first except when booting in single-user mode.\n" \
1286" #\n" \
1287" ::sysinit:/etc/init.d/rcS\n" \
1288" \n" \
1289" # /bin/sh invocations on selected ttys\n" \
1290" #\n" \
1291" # Start an "askfirst" shell on the console (whatever that may be)\n" \
1292" ::askfirst:-/bin/sh\n" \
1293" # Start an "askfirst" shell on /dev/tty2-4\n" \
1294" tty2::askfirst:-/bin/sh\n" \
1295" tty3::askfirst:-/bin/sh\n" \
1296" tty4::askfirst:-/bin/sh\n" \
1297" \n" \
1298" # /sbin/getty invocations for selected ttys\n" \
1299" #\n" \
1300" tty4::respawn:/sbin/getty 38400 tty4\n" \
1301" tty5::respawn:/sbin/getty 38400 tty5\n" \
1302" \n" \
1303" \n" \
1304" # Example of how to put a getty on a serial line (for a terminal)\n" \
1305" #\n" \
1306" #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
1307" #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
1308" #\n" \
1309" # Example how to put a getty on a modem line.\n" \
1310" #::respawn:/sbin/getty 57600 ttyS2\n" \
1311" \n" \
1312" # Stuff to do when restarting the init process\n" \
1313" ::restart:/sbin/init\n" \
1314" \n" \
1315" # Stuff to do before rebooting\n" \
1316" ::ctrlaltdel:/sbin/reboot\n" \
1317" ::shutdown:/bin/umount -a -r\n" \
1318" ::shutdown:/sbin/swapoff -a\n"
1319
1320#ifdef CONFIG_FEATURE_INSMOD_LOAD_MAP
1321 #define USAGE_INSMOD_MAP(a) a
1322#else
1323 #define USAGE_INSMOD_MAP(a)
1324#endif
1325#define insmod_trivial_usage \
1326 "[OPTION]... MODULE [symbol=value]..."
1327#define insmod_full_usage \
1328 "Loads the specified kernel modules into the kernel.\n\n" \
1329 "Options:\n" \
1330 "\t-f\tForce module to load into the wrong kernel version.\n" \
1331 "\t-k\tMake module autoclean-able.\n" \
1332 "\t-v\tverbose output\n" \
1333 "\t-q\tquiet output\n" \
1334 "\t-L\tLock to prevent simultaneous loads of a module\n" \
1335 USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout\n") \
1336 "\t-o NAME\tSet internal module name to NAME\n" \
1337 "\t-x\tdo not export externs"
1338
1339#define install_trivial_usage \
1340 "[-cgmops] [sources] <dest|directory>"
1341#define install_full_usage \
1342 "Copies files and set attributes\n\n" \
1343 "Options:\n" \
1344 "\t-c\tcopy the file, default\n" \
1345 "\t-d\tcreate directories\n" \
1346 "\t-g\tset group ownership\n" \
1347 "\t-m\tset permission modes\n" \
1348 "\t-o\tset ownership\n" \
1349 "\t-p\tpreserve date\n" \
1350 "\t-s\tstrip symbol tables"
1351
1352
1353#define install_initd_trivial_usage \
1354 ""
1355#define install_initd_full_usage \
1356 "LSB install_initd init system."
1357#define install_initd_example_usage \
1358 "$ install_initd start\n"
1359
1360
1361#define ip_trivial_usage \
1362 "[ OPTIONS ] { address | link | route | tunnel } { COMMAND | help }"
1363#define ip_full_usage \
1364 "ip [ OPTIONS ] OBJECT { COMMAND | help }\n" \
1365 "where OBJECT := { link | addr | route | tunnel }\n" \
1366 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
1367
1368#define ipaddr_trivial_usage \
1369 "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
1370 "\t\t[ dev STRING ] [ to PREFIX ] }"
1371#define ipaddr_full_usage \
1372 "ipaddr {add|del} IFADDR dev STRING\n" \
1373 "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
1374 "\t\t\t[ to PREFIX ] [ label PATTERN ]\n" \
1375 "\t\t\tIFADDR := PREFIX | ADDR peer PREFIX\n" \
1376 "\t\t\t[ broadcast ADDR ] [ anycast ADDR ]\n" \
1377 "\t\t\t[ label STRING ] [ scope SCOPE-ID ]\n" \
1378 "\t\t\tSCOPE-ID := [ host | link | global | NUMBER ]"
1379
1380#ifdef CONFIG_FEATURE_IPCALC_FANCY
1381 #define XUSAGE_IPCALC_FANCY(a) a
1382#else
1383 #define XUSAGE_IPCALC_FANCY(a)
1384#endif
1385#define ipcalc_trivial_usage \
1386 "[OPTION]... <ADDRESS>[[/]<NETMASK>] [NETMASK]"
1387#define ipcalc_full_usage \
1388 "Calculate IP network settings from a IP address\n\n" \
1389 "Options:\n" \
1390 "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
1391 "\t-n\t--network\tDisplay calculated network address.\n" \
1392 "\t-m\t--netmask\tDisplay default netmask for IP." \
1393 XUSAGE_IPCALC_FANCY(\
1394 "\n\t-p\t--prefix\tDisplay the prefix for IP/NETMASK." \
1395 "\t-h\t--hostname\tDisplay first resolved host name.\n" \
1396 "\t-s\t--silent\tDon't ever display error messages.")
1397
1398#define iplink_trivial_usage \
1399 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
1400#define iplink_full_usage \
1401 "iplink set DEVICE { up | down | arp { on | off } |\n" \
1402 "\t\t\tdynamic { on | off } |\n" \
1403 "\t\t\tmtu MTU }\n" \
1404 "\tiplink show [ DEVICE ]"
1405
1406#define iproute_trivial_usage \
1407 "{ list | flush | { add | del | change | append |\n" \
1408 "\t\treplace | monitor } ROUTE }"
1409#define iproute_full_usage \
1410 "iproute { list | flush } SELECTOR\n" \
1411 "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \
1412 "\t\t\t[ oif STRING ] [ tos TOS ]\n" \
1413 "\tiproute { add | del | change | append | replace | monitor } ROUTE\n" \
1414 "\t\t\tSELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \
1415 "\t\t\tROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
1416
1417#define iptunnel_trivial_usage \
1418 "{ add | change | del | show } [ NAME ]\n" \
1419 "\t\t[ mode { ipip | gre | sit } ]\n" \
1420 "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]"
1421#define iptunnel_full_usage \
1422 "iptunnel { add | change | del | show } [ NAME ]\n" \
1423 "\t\t\t[ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \
1424 "\t\t\t[ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \
1425 "\t\t\t[ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]"
1426
1427#define kill_trivial_usage \
1428 "[-signal] process-id [process-id ...]"
1429#define kill_full_usage \
1430 "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
1431 "Options:\n" \
1432 "\t-l\tList all signal names and numbers."
1433#define kill_example_usage \
1434 "$ ps | grep apache\n" \
1435 "252 root root S [apache]\n" \
1436 "263 www-data www-data S [apache]\n" \
1437 "264 www-data www-data S [apache]\n" \
1438 "265 www-data www-data S [apache]\n" \
1439 "266 www-data www-data S [apache]\n" \
1440 "267 www-data www-data S [apache]\n" \
1441 "$ kill 252\n"
1442
1443#define killall_trivial_usage \
1444 "[-q] [-signal] process-name [process-name ...]"
1445#define killall_full_usage \
1446 "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
1447 "Options:\n" \
1448 "\t-l\tList all signal names and numbers.\n"\
1449 "\t-q\tDo not complain if no processes were killed."
1450#define killall_example_usage \
1451 "$ killall apache\n"
1452
1453#define killproc_trivial_usage \
1454 ""
1455#define killproc_full_usage \
1456 "LSB killproc."
1457#define killproc_example_usage \
1458 "$ killproc 5\n"
1459
1460
1461#define klogd_trivial_usage \
1462 "[-c n] [-n]"
1463#define klogd_full_usage \
1464 "Kernel logger.\n"\
1465 "Options:\n"\
1466 "\t-c n\tSets the default log level of console messages to n.\n"\
1467 "\t-n\tRun as a foreground process."
1468
1469#define length_trivial_usage \
1470 "STRING"
1471#define length_full_usage \
1472 "Prints out the length of the specified STRING."
1473#define length_example_usage \
1474 "$ length Hello\n" \
1475 "5\n"
1476
1477#define linuxrc_trivial_usage \
1478 ""
1479#define linuxrc_full_usage \
1480 "linuxrc pre boot."
1481#define linuxrc_example_usage \
1482 "$ linuxrc\n"
1483
1484
1485#define ln_trivial_usage \
1486 "[OPTION] TARGET... LINK_NAME|DIRECTORY"
1487#define ln_full_usage \
1488 "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n"\
1489 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \
1490 "Options:\n" \
1491 "\t-s\tmake symbolic links instead of hard links\n" \
1492 "\t-f\tremove existing destination files\n" \
1493 "\t-n\tno dereference symlinks - treat like normal file"
1494#define ln_example_usage \
1495 "$ ln -s BusyBox /tmp/ls\n" \
1496 "$ ls -l /tmp/ls\n" \
1497 "lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n"
1498
1499#define loadfont_trivial_usage \
1500 "< font"
1501#define loadfont_full_usage \
1502 "Loads a console font from standard input."
1503#define loadfont_example_usage \
1504 "$ loadfont < /etc/i18n/fontname\n"
1505
1506#define loadkmap_trivial_usage \
1507 "< keymap"
1508#define loadkmap_full_usage \
1509 "Loads a binary keyboard translation table from standard input."
1510#define loadkmap_example_usage \
1511 "$ loadkmap < /etc/i18n/lang-keymap\n"
1512
1513#define local_fs_trivial_usage \
1514 ""
1515#define local_fs_full_usage \
1516 "LSB local_fs init system."
1517#define local_fs_example_usage \
1518 "$ local_fs start\n"
1519
1520
1521#define log_failure_msg_trivial_usage \
1522 ""
1523#define log_failure_msg_full_usage \
1524 "LSB log_failure_msg."
1525#define log_failure_msg_example_usage \
1526 "$ log_failure_msg ""\n"
1527
1528
1529#define log_success_msg_trivial_usage \
1530 ""
1531#define log_success_msg_full_usage \
1532 "LSB log_success_msg."
1533#define log_success_msg_example_usage \
1534 "$ log_success_msg ""\n"
1535
1536
1537#define log_warning_msg_trivial_usage \
1538 ""
1539#define log_warning_msg_full_usage \
1540 "LSB log_warning_msg."
1541#define log_warning_msg_example_usage \
1542 "$ log_warning_msg ""\n"
1543
1544
1545#define logger_trivial_usage \
1546 "[OPTION]... [MESSAGE]"
1547#define logger_full_usage \
1548 "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" \
1549 "Options:\n" \
1550 "\t-s\tLog to stderr as well as the system log.\n" \
1551 "\t-t TAG\tLog using the specified tag (defaults to user name).\n" \
1552 "\t-p PRIORITY\tEnter the message with the specified priority.\n" \
1553 "\t\tThis may be numerical or a ``facility.level'' pair."
1554#define logger_example_usage \
1555 "$ logger "hello"\n"
1556
1557#define login_trivial_usage \
1558 "[OPTION]... [username] [ENV=VAR ...]"
1559#define login_full_usage \
1560 "Begin a new session on the system\n\n" \
1561 "Options:\n" \
1562 "\t-f\tDo not authenticate (user already authenticated)\n" \
1563 "\t-h\tName of the remote host for this login.\n" \
1564 "\t-p\tPreserve environment."
1565
1566#define logname_trivial_usage \
1567 ""
1568#define logname_full_usage \
1569 "Print the name of the current user."
1570#define logname_example_usage \
1571 "$ logname\n" \
1572 "root\n"
1573
1574#define logread_trivial_usage \
1575 "[OPTION]..."
1576#define logread_full_usage \
1577 "Shows the messages from syslogd (using circular buffer).\n\n" \
1578 "Options:\n" \
1579 "\t-f\t\toutput data as the log grows"
1580
1581#define losetup_trivial_usage \
1582 "[OPTION]... LOOPDEVICE FILE\n" \
1583 "or: losetup [OPTION]... -d LOOPDEVICE"
1584#define losetup_full_usage \
1585 "Associate LOOPDEVICE with FILE.\n\n" \
1586 "Options:\n" \
1587 "\t-d\t\tDisassociate LOOPDEVICE.\n" \
1588 "\t-o OFFSET\tStart OFFSET bytes into FILE."
1589
1590#ifdef CONFIG_FEATURE_LS_TIMESTAMPS
1591 #define USAGE_LS_TIMESTAMPS(a) a
1592#else
1593 #define USAGE_LS_TIMESTAMPS(a)
1594#endif
1595#ifdef CONFIG_FEATURE_LS_FILETYPES
1596 #define USAGE_LS_FILETYPES(a) a
1597#else
1598 #define USAGE_LS_FILETYPES(a)
1599#endif
1600#ifdef CONFIG_FEATURE_LS_FOLLOWLINKS
1601 #define USAGE_LS_FOLLOWLINKS(a) a
1602#else
1603 #define USAGE_LS_FOLLOWLINKS(a)
1604#endif
1605#ifdef CONFIG_FEATURE_LS_RECURSIVE
1606 #define USAGE_LS_RECURSIVE(a) a
1607#else
1608 #define USAGE_LS_RECURSIVE(a)
1609#endif
1610#ifdef CONFIG_FEATURE_LS_SORTFILES
1611 #define USAGE_LS_SORTFILES(a) a
1612#else
1613 #define USAGE_LS_SORTFILES(a)
1614#endif
1615#ifdef CONFIG_FEATURE_AUTOWIDTH
1616 #define USAGE_AUTOWIDTH(a) a
1617#else
1618 #define USAGE_AUTOWIDTH(a)
1619#endif
1620
1621#define ls_trivial_usage \
1622 "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K") "] [filenames...]"
1623#define ls_full_usage \
1624 "List directory contents\n\n" \
1625 "Options:\n" \
1626 "\t-1\tlist files in a single column\n" \
1627 "\t-A\tdo not list implied . and ..\n" \
1628 "\t-a\tdo not hide entries starting with .\n" \
1629 "\t-C\tlist entries by columns\n" \
1630 USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \
1631 "\t-d\tlist directory entries instead of contents\n" \
1632 USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \
1633 USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \
1634 "\t-i\tlist the i-node for each file\n" \
1635 "\t-l\tuse a long listing format\n" \
1636 "\t-n\tlist numeric UIDs and GIDs instead of names\n" \
1637 USAGE_LS_FILETYPES("\t-p\tappend indicator (one of /=@|) to entries\n") \
1638 USAGE_LS_FOLLOWLINKS("\t-L\tlist entries pointed to by symbolic links\n") \
1639 USAGE_LS_RECURSIVE("\t-R\tlist subdirectories recursively\n") \
1640 USAGE_LS_SORTFILES("\t-r\tsort the listing in reverse order\n") \
1641 USAGE_LS_SORTFILES("\t-S\tsort the listing by file size\n") \
1642 "\t-s\tlist the size of each file, in blocks\n" \
1643 USAGE_AUTOWIDTH("\t-T NUM\tassume Tabstop every NUM columns\n") \
1644 USAGE_LS_TIMESTAMPS("\t-t\twith -l: show modification time\n") \
1645 USAGE_LS_TIMESTAMPS("\t-u\twith -l: show access time\n") \
1646 USAGE_LS_SORTFILES("\t-v\tsort the listing by version\n") \
1647 USAGE_AUTOWIDTH("\t-w NUM\tassume the terminal is NUM columns wide\n") \
1648 "\t-x\tlist entries by lines instead of by columns\n" \
1649 USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \
1650 USAGE_HUMAN_READABLE( \
1651 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n") \
1652 USAGE_SELINUX("\t-k\tprint security context\n") \
1653 USAGE_SELINUX("\t-K\tprint security context in long format\n")
1654
1655#define lsmod_trivial_usage \
1656 ""
1657#define lsmod_full_usage \
1658 "List the currently loaded kernel modules."
1659
1660#define makedevs_trivial_usage \
1661 "NAME TYPE MAJOR MINOR FIRST LAST [s]"
1662#define makedevs_full_usage \
1663 "Creates a range of block or character special files\n\n" \
1664 "TYPEs include:\n" \
1665 "\tb:\tMake a block (buffered) device.\n" \
1666 "\tc or u:\tMake a character (un-buffered) device.\n" \
1667 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \
1668 "FIRST specifies the number appended to NAME to create the first device.\n" \
1669 "LAST specifies the number of the last item that should be created.\n" \
1670 "If 's' is the last argument, the base device is created as well.\n\n" \
1671 "For example:\n" \
1672 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \
1673 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
1674#define makedevs_example_usage \
1675 "# makedevs /dev/ttyS c 4 66 2 63\n" \
1676 "[creates ttyS2-ttyS63]\n" \
1677 "# makedevs /dev/hda b 3 0 0 8 s\n" \
1678 "[creates hda,hda1-hda8]\n"
1679
1680#define man_trivial_usage \
1681 "[NAME]"
1682#define man_full_usage \
1683 "Show documentation for Trinux software."
1684#define man_example_usage \
1685 "$ man basics\n"
1686
1687
1688#ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
1689#define USAGE_MD5_SHA1_SUM_CHECK(a) a
1690#else
1691#define USAGE_MD5_SHA1_SUM_CHECK(a)
1692#endif
1693
1694#define md5sum_trivial_usage \
1695 "[OPTION] [FILEs...]" \
1696 USAGE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]")
1697#define md5sum_full_usage \
1698 "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums.\n\n" \
1699 "Options:\n" \
1700 "With no FILE, or when FILE is -, read standard input." \
1701 USAGE_MD5_SHA1_SUM_CHECK("\n\n" \
1702 "\t-c\tcheck MD5 sums against given list\n" \
1703 "\nThe following two options are useful only when verifying checksums:\n" \
1704 "\t-s\tdon't output anything, status code shows success\n" \
1705 "\t-w\twarn about improperly formated MD5 checksum lines")
1706#define md5sum_example_usage \
1707 "$ md5sum < busybox\n" \
1708 "6fd11e98b98a58f64ff3398d7b324003\n" \
1709 "$ md5sum busybox\n" \
1710 "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
1711 "$ md5sum -c -\n" \
1712 "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \
1713 "busybox: OK\n" \
1714 "^D\n"
1715
1716#define mesg_trivial_usage \
1717 "[y|n]"
1718#define mesg_full_usage \
1719 "mesg controls write access to your terminal\n" \
1720 "\ty\tAllow write access to your terminal.\n" \
1721 "\tn\tDisallow write access to your terminal.\n"
1722
1723#define mkdir_trivial_usage \
1724 "[OPTION] DIRECTORY..."
1725#define mkdir_full_usage \
1726 "Create the DIRECTORY(ies) if they do not already exist\n\n" \
1727 "Options:\n" \
1728 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" \
1729 "\t-p\tno error if existing, make parent directories as needed"
1730#define mkdir_example_usage \
1731 "$ mkdir /tmp/foo\n" \
1732 "$ mkdir /tmp/foo\n" \
1733 "/tmp/foo: File exists\n" \
1734 "$ mkdir /tmp/foo/bar/baz\n" \
1735 "/tmp/foo/bar/baz: No such file or directory\n" \
1736 "$ mkdir -p /tmp/foo/bar/baz\n"
1737
1738#define mkfifo_trivial_usage \
1739 "[OPTIONS] name"
1740#define mkfifo_full_usage \
1741 "Creates a named pipe (identical to 'mknod name p')\n\n" \
1742 "Options:\n" \
1743 "\t-m\tcreate the pipe using the specified mode (default a=rw)"
1744
1745#define mkfs_minix_trivial_usage \
1746 "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
1747#define mkfs_minix_full_usage \
1748 "Make a MINIX filesystem.\n\n" \
1749 "Options:\n" \
1750 "\t-c\t\tCheck the device for bad blocks\n" \
1751 "\t-n [14|30]\tSpecify the maximum length of filenames\n" \
1752 "\t-i INODES\tSpecify the number of inodes for the filesystem\n" \
1753 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" \
1754 "\t-v\t\tMake a Minix version 2 filesystem"
1755
1756#define mknod_trivial_usage \
1757 "[OPTIONS] NAME TYPE MAJOR MINOR"
1758#define mknod_full_usage \
1759 "Create a special file (block, character, or pipe).\n\n" \
1760 "Options:\n" \
1761 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" \
1762 "TYPEs include:\n" \
1763 "\tb:\tMake a block (buffered) device.\n" \
1764 "\tc or u:\tMake a character (un-buffered) device.\n" \
1765 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
1766#define mknod_example_usage \
1767 "$ mknod /dev/fd0 b 2 0\n" \
1768 "$ mknod -m 644 /tmp/pipe p\n"
1769
1770#define mkswap_trivial_usage \
1771 "[-c] [-v0|-v1] device [block-count]"
1772#define mkswap_full_usage \
1773 "Prepare a disk partition to be used as a swap partition.\n\n" \
1774 "Options:\n" \
1775 "\t-c\t\tCheck for read-ability.\n" \
1776 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" \
1777 "\t-v1\t\tMake version 1 swap [big!] (default for kernels >\n\t\t\t2.1.117).\n" \
1778 "\tblock-count\tNumber of block to use (default is entire partition)."
1779
1780#define mktemp_trivial_usage \
1781 "[-dq] TEMPLATE"
1782#define mktemp_full_usage \
1783 "Creates a temporary file with its name based on TEMPLATE.\n" \
1784 "TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX).\n\n" \
1785 "Options:\n" \
1786 "\t-d\t\tMake a directory instead of a file\n" \
1787 "\t-q\t\tFail silently if an error occurs"
1788#define mktemp_example_usage \
1789 "$ mktemp /tmp/temp.XXXXXX\n" \
1790 "/tmp/temp.mWiLjM\n" \
1791 "$ ls -la /tmp/temp.mWiLjM\n" \
1792 "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
1793
1794#define modprobe_trivial_usage \
1795 "[-knqrsv] [MODULE ...]"
1796#define modprobe_full_usage \
1797 "Used for high level module loading and unloading.\n\n" \
1798 "Options:\n" \
1799 "\t-k\tMake module autoclean-able.\n" \
1800 "\t-n\tJust show what would be done.\n" \
1801 "\t-q\tQuiet output.\n" \
1802 "\t-r\tRemove module (stacks) or do autoclean.\n" \
1803 "\t-s\tReport via syslog instead of stderr.\n" \
1804 "\t-v\tVerbose output."
1805#define modprobe_example_usage \
1806 "$ modprobe cdrom\n"
1807
1808#define more_trivial_usage \
1809 "[FILE ...]"
1810#define more_full_usage \
1811 "More is a filter for viewing FILE one screenful at a time."
1812#define more_example_usage \
1813 "$ dmesg | more\n"
1814
1815#ifdef CONFIG_FEATURE_MOUNT_LOOP
1816 #define USAGE_MOUNT_LOOP(a) a
1817#else
1818 #define USAGE_MOUNT_LOOP(a)
1819#endif
1820#ifdef CONFIG_FEATURE_MTAB_SUPPORT
1821 #define USAGE_MTAB(a) a
1822#else
1823 #define USAGE_MTAB(a)
1824#endif
1825#define mount_trivial_usage \
1826 "[flags] DEVICE NODE [-o options,more-options]"
1827#define mount_full_usage \
1828 "Mount a filesystem. Autodetection of filesystem type requires the\n" \
1829 "/proc filesystem be already mounted.\n\n" \
1830 "Flags:\n" \
1831 "\t-a:\t\tMount all filesystems in fstab.\n" \
1832 USAGE_MTAB( \
1833 "\t-f:\t\t\"Fake\" Add entry to mount table but don't mount it.\n" \
1834 "\t-n:\t\tDon't write a mount table entry.\n" \
1835 ) \
1836 "\t-o option:\tOne of many filesystem options, listed below.\n" \
1837 "\t-r:\t\tMount the filesystem read-only.\n" \
1838 "\t-t fs-type:\tSpecify the filesystem type.\n" \
1839 "\t-w:\t\tMount for reading and writing (default).\n" \
1840 "\n" \
1841 "Options for use with the \"-o\" flag:\n" \
1842 "\tasync/sync:\tWrites are asynchronous / synchronous.\n" \
1843 "\tatime/noatime:\tEnable / disable updates to inode access times.\n" \
1844 "\tdev/nodev:\tAllow use of special device files / disallow them.\n" \
1845 "\texec/noexec:\tAllow use of executable files / disallow them.\n" \
1846 USAGE_MOUNT_LOOP( \
1847 "\tloop:\t\tMounts a file via loop device.\n" \
1848 ) \
1849 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" \
1850 "\tremount:\tRe-mount a mounted filesystem, changing its flags.\n" \
1851 "\tro/rw:\t\tMount for read-only / read-write.\n" \
1852 "\tbind:\t\tUse the linux 2.4.x \"bind\" feature.\n" \
1853 "\nThere are EVEN MORE flags that are specific to each filesystem.\n" \
1854 "You'll have to see the written documentation for those filesystems."
1855#define mount_example_usage \
1856 "$ mount\n" \
1857 "/dev/hda3 on / type minix (rw)\n" \
1858 "proc on /proc type proc (rw)\n" \
1859 "devpts on /dev/pts type devpts (rw)\n" \
1860 "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
1861 "$ mount /tmp/diskimage /opt -t ext2 -o loop\n"
1862
1863#define mt_trivial_usage \
1864 "[-f device] opcode value"
1865#define mt_full_usage \
1866 "Control magnetic tape drive operation\n" \
1867 "\nAvailable Opcodes:\n\n" \
1868 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
1869 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
1870 "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
1871 "setpart tell unload unlock weof wset"
1872
1873#define mv_trivial_usage \
1874 "[OPTION]... SOURCE DEST\n" \
1875 "or: mv [OPTION]... SOURCE... DIRECTORY"
1876#define mv_full_usage \
1877 "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\n" \
1878 "Options:\n" \
1879 "\t-f\tdon't prompt before overwriting\n" \
1880 "\t-i\tinteractive, prompt before overwrite"
1881#define mv_example_usage \
1882 "$ mv /tmp/foo /bin/bar\n"
1883
1884#define nameif_trivial_usage \
1885 "[-s] [-c FILE] [{IFNAME MACADDR}]"
1886#define nameif_full_usage \
1887 "Nameif renaming network interface while it in the down state.\n\n" \
1888 "Options:\n" \
1889 "\t-c FILE\t\tUse configuration file (default is /etc/mactab)\n" \
1890 "\t-s\t\tUse syslog (LOCAL0 facility).\n" \
1891 "\tIFNAME MACADDR\tnew_interface_name interface_mac_address"
1892#define nameif_example_usage \
1893 "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
1894 " or\n" \
1895 "$ nameif -c /etc/my_mactab_file\n" \
1896
1897#define nc_trivial_usage \
1898 "[OPTIONS] [IP] [port]"
1899#define nc_full_usage \
1900 "Netcat opens a pipe to IP:port\n\n" \
1901 "Options:\n" \
1902 "\t-l\t\tlisten mode, for inbound connects\n" \
1903 "\t-p PORT\t\tlocal port number\n" \
1904 "\t-i SECS\t\tdelay interval for lines sent\n" \
1905 "\t-e PROG\t\tprogram to exec after connect (dangerous!)"
1906#define nc_example_usage \
1907 "$ nc foobar.somedomain.com 25\n" \
1908 "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \
1909 "help\n" \
1910 "214-Commands supported:\n" \
1911 "214- HELO EHLO MAIL RCPT DATA AUTH\n" \
1912 "214 NOOP QUIT RSET HELP\n" \
1913 "quit\n" \
1914 "221 foobar closing connection\n"
1915
1916#define netstat_trivial_usage \
1917 "[-laenrtuwx]"
1918#define netstat_full_usage \
1919 "Netstat displays Linux networking information.\n\n" \
1920 "Options:\n" \
1921 "\t-l display listening server sockets\n" \
1922 "\t-a display all sockets (default: connected)\n" \
1923 "\t-e display other/more information\n" \
1924 "\t-n don't resolve names\n" \
1925 "\t-r display routing table\n" \
1926 "\t-t tcp sockets\n" \
1927 "\t-u udp sockets\n" \
1928 "\t-w raw sockets\n" \
1929 "\t-x unix sockets"
1930
1931
1932#define network_trivial_usage \
1933 ""
1934#define network_full_usage \
1935 "LSB network init system."
1936#define network_example_usage \
1937 "$ network start\n"
1938
1939
1940#define nslookup_trivial_usage \
1941 "[HOST] [SERVER]"
1942#define nslookup_full_usage \
1943 "Queries the nameserver for the IP address of the given HOST\n" \
1944 "optionally using a specified DNS server"
1945#define nslookup_example_usage \
1946 "$ nslookup localhost\n" \
1947 "Server: default\n" \
1948 "Address: default\n" \
1949 "\n" \
1950 "Name: debian\n" \
1951 "Address: 127.0.0.1\n"
1952
1953#define od_trivial_usage \
1954 "[-aBbcDdeFfHhIiLlOovXx] [FILE]"
1955#define od_full_usage \
1956 "Write an unambiguous representation, octal bytes by default, of FILE\n"\
1957 "to standard output. With no FILE, or when FILE is -, read standard input."
1958
1959#define openvt_trivial_usage \
1960 "<vtnum> <COMMAND> [ARGS...]"
1961#define openvt_full_usage \
1962 "Start a command on a new virtual terminal"
1963#define openvt_example_usage \
1964 "openvt 2 /bin/ash\n"
1965
1966#ifdef CONFIG_FEATURE_SHA1_PASSWORDS
1967 #define PASSWORD_ALG_TYPES(a) a
1968#else
1969 #define PASSWORD_ALG_TYPES(a)
1970#endif
1971#define passwd_trivial_usage \
1972 "[OPTION] [name]"
1973#define passwd_full_usage \
1974 "Change a user password. If no name is specified,\n" \
1975 "changes the password for the current user.\n" \
1976 "Options:\n" \
1977 "\t-a\tDefine which algorithm shall be used for the password.\n" \
1978 "\t\t\t(Choices: des, md5" \
1979 PASSWORD_ALG_TYPES(", sha1") \
1980 ")\n\t-d\tDelete the password for the specified user account.\n" \
1981 "\t-l\tLocks (disables) the specified user account.\n" \
1982 "\t-u\tUnlocks (re-enables) the specified user account."
1983
1984#define patch_trivial_usage \
1985 "[-p<num>]"
1986#define patch_full_usage \
1987 "[-p<num>]"
1988#define patch_example_usage \
1989 "$ patch -p1 <example.diff"
1990
1991#define pidof_trivial_usage \
1992 "process-name [OPTION] [process-name ...]"
1993#define pidof_full_usage \
1994 "Lists the PIDs of all processes with names that match the\n" \
1995 "names on the command line.\n" \
1996 "Options:\n" \
1997 "\t-s\t\tdisplay only a single PID."
1998#define pidof_example_usage \
1999 "$ pidof init\n" \
2000 "1\n"
2001
2002#define pidofproc_trivial_usage \
2003 ""
2004#define pidofproc_full_usage \
2005 "LSB pidofproc."
2006#define pidofproc_example_usage \
2007 "$ pidofproc 5\n"
2008
2009
2010#ifndef CONFIG_FEATURE_FANCY_PING
2011#define ping_trivial_usage "host"
2012#define ping_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"
2013#else
2014#define ping_trivial_usage \
2015 "[OPTION]... host"
2016#define ping_full_usage \
2017 "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
2018 "Options:\n" \
2019 "\t-c COUNT\tSend only COUNT pings.\n" \
2020 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \
2021 "\t-q\t\tQuiet mode, only displays output at start\n" \
2022 "\t\t\tand when finished."
2023#endif
2024#define ping_example_usage \
2025 "$ ping localhost\n" \
2026 "PING slag (127.0.0.1): 56 data bytes\n" \
2027 "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \
2028 "\n" \
2029 "--- debian ping statistics ---\n" \
2030 "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2031 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2032
2033#ifndef CONFIG_FEATURE_FANCY_PING6
2034#define ping6_trivial_usage "host"
2035#define ping6_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"
2036#else
2037#define ping6_trivial_usage \
2038 "[OPTION]... host"
2039#define ping6_full_usage \
2040 "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
2041 "Options:\n" \
2042 "\t-c COUNT\tSend only COUNT pings.\n" \
2043 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \
2044 "\t-q\t\tQuiet mode, only displays output at start\n" \
2045 "\t\t\tand when finished."
2046#endif
2047#define ping6_example_usage \
2048 "$ ping6 ip6-localhost\n" \
2049 "PING ip6-localhost (::1): 56 data bytes\n" \
2050 "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \
2051 "\n" \
2052 "--- ip6-localhost ping statistics ---\n" \
2053 "1 packets transmitted, 1 packets received, 0% packet loss\n" \
2054 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
2055
2056#define pivot_root_trivial_usage \
2057 "NEW_ROOT PUT_OLD"
2058#define pivot_root_full_usage \
2059 "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
2060 "the new root file system."
2061
2062#define poweroff_trivial_usage \
2063 "[-d<delay>]"
2064#define poweroff_full_usage \
2065 "Halt the system and request that the kernel shut off the power.\n" \
2066 "Options:\n" \
2067 "\t-d\t\tdelay interval for shutting off."
2068
2069#define printf_trivial_usage \
2070 "FORMAT [ARGUMENT...]"
2071#define printf_full_usage \
2072 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
2073 "Where FORMAT controls the output exactly as in C printf."
2074#define printf_example_usage \
2075 "$ printf "Val=%d\\n" 5\n" \
2076 "Val=5\n"
2077
2078#ifdef CONFIG_SELINUX
2079#define USAGE_NONSELINUX(a)
2080#else
2081#define USAGE_NONSELINUX(a) a
2082#endif
2083
2084#define ps_trivial_usage \
2085 ""
2086#define ps_full_usage \
2087 "Report process status\n" \
2088 USAGE_NONSELINUX("\n\tThis version of ps accepts no options.") \
2089 USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context")
2090
2091#define ps_example_usage \
2092 "$ ps\n" \
2093 " PID Uid Gid State Command\n" \
2094 " 1 root root S init\n" \
2095 " 2 root root S [kflushd]\n" \
2096 " 3 root root S [kupdate]\n" \
2097 " 4 root root S [kpiod]\n" \
2098 " 5 root root S [kswapd]\n" \
2099 " 742 andersen andersen S [bash]\n" \
2100 " 743 andersen andersen S -bash\n" \
2101 " 745 root root S [getty]\n" \
2102 " 2990 andersen andersen R ps\n"
2103
2104#define pwd_trivial_usage \
2105 ""
2106#define pwd_full_usage \
2107 "Print the full filename of the current working directory."
2108#define pwd_example_usage \
2109 "$ pwd\n" \
2110 "/root\n"
2111
2112#define rc_trivial_usage \
2113 ""
2114#define rc_full_usage \
2115 "LSB rc init system."
2116#define rc_example_usage \
2117 "$ rc 5\n"
2118
2119
2120#define rcS_trivial_usage \
2121 ""
2122#define rcS_full_usage \
2123 "sysinit for inittab."
2124#define rcS_example_usage \
2125 "$ rcS\n"
2126
2127
2128#define rdate_trivial_usage \
2129 "[-sp] HOST"
2130#define rdate_full_usage \
2131 "Get and possibly set the system date and time from a remote HOST.\n\n" \
2132 "Options:\n" \
2133 "\t-s\tSet the system date and time (default).\n" \
2134 "\t-p\tPrint the date and time."
2135
2136#define readlink_trivial_usage \
2137 ""
2138#define readlink_full_usage \
2139 "Displays the value of a symbolic link."
2140
2141#define realpath_trivial_usage \
2142 "pathname ..."
2143#define realpath_full_usage \
2144 "Returns the absolute pathnames of given argument."
2145
2146#define reboot_trivial_usage \
2147 "[-d<delay>]"
2148#define reboot_full_usage \
2149 "Reboot the system.\n" \
2150 "Options:\n" \
2151 "\t-d\t\tdelay interval for rebooting."
2152
2153#define remote_fs_trivial_usage \
2154 ""
2155#define remote_fs_full_usage \
2156 "LSB remote_fs init system."
2157#define remote_fs_example_usage \
2158 "$ remote_fs start\n"
2159
2160
2161#define remove_initd_trivial_usage \
2162 ""
2163#define remove_initd_full_usage \
2164 "LSB remove_initd init system."
2165#define remove_initd_example_usage \
2166 "$ remove_initd start\n"
2167
2168
2169#define renice_trivial_usage \
2170 "priority pid [pid ...]"
2171#define renice_full_usage \
2172 "Changes priority of running processes. Allowed priorities range\n" \
2173 "from 20 (the process runs only when nothing else is running) to 0\n" \
2174 "(default priority) to -20 (almost nothing else ever gets to run)."
2175
2176#define reset_trivial_usage \
2177 ""
2178#define reset_full_usage \
2179 "Resets the screen."
2180
2181#define rm_trivial_usage \
2182 "[OPTION]... FILE..."
2183#define rm_full_usage \
2184 "Remove (unlink) the FILE(s). You may use '--' to\n" \
2185 "indicate that all following arguments are non-options.\n\n" \
2186 "Options:\n" \
2187 "\t-i\t\talways prompt before removing each destination\n" \
2188 "\t-f\t\tremove existing destinations, never prompt\n" \
2189 "\t-r or -R\tremove the contents of directories recursively"
2190#define rm_example_usage \
2191 "$ rm -rf /tmp/foo\n"
2192
2193#define rmdir_trivial_usage \
2194 "[OPTION]... DIRECTORY..."
2195#define rmdir_full_usage \
2196 "Remove the DIRECTORY(ies), if they are empty."
2197#define rmdir_example_usage \
2198 "# rmdir /tmp/foo\n"
2199
2200#define rmmod_trivial_usage \
2201 "[OPTION]... [MODULE]..."
2202#define rmmod_full_usage \
2203 "Unloads the specified kernel modules from the kernel.\n\n" \
2204 "Options:\n" \
2205 "\t-a\tRemove all unused modules (recursively)"
2206#define rmmod_example_usage \
2207 "$ rmmod tulip\n"
2208
2209#ifdef CONFIG_FEATURE_IPV6
2210 #define USAGE_ROUTE_IPV6(a) a
2211#else
2212 #define USAGE_ROUTE_IPV6(a) "\t"
2213#endif
2214
2215
2216#define route_trivial_usage \
2217 "[{add|del|delete}]"
2218#define route_full_usage \
2219 "Edit the kernel's routing tables.\n\n" \
2220 "Options:\n" \
2221 "\t-n\t\tDont resolve names.\n" \
2222 "\t-e\t\tDisplay other/more information.\n" \
2223 "\t-A inet" USAGE_ROUTE_IPV6("{6}") "\tSelect address family."
2224
2225#define rpm_trivial_usage \
2226 "-i -q[ildc]p package.rpm"
2227#define rpm_full_usage \
2228 "Manipulates RPM packages" \
2229 "\n\nOptions:" \
2230 "\n\t-i Install package" \
2231 "\n\t-q Query package" \
2232 "\n\t-p Query uninstalled package" \
2233 "\n\t-i Show information" \
2234 "\n\t-l List contents" \
2235 "\n\t-d List documents" \
2236 "\n\t-c List config files"
2237
2238#define rpm2cpio_trivial_usage \
2239 "package.rpm"
2240#define rpm2cpio_full_usage \
2241 "Outputs a cpio archive of the rpm file."
2242
2243#define run_parts_trivial_usage \
2244 "[-t] [-a ARG] [-u MASK] DIRECTORY"
2245#define run_parts_full_usage \
2246 "Run a bunch of scripts in a directory.\n\n" \
2247 "Options:\n" \
2248 "\t-t\tPrints what would be run, but does not actually run anything.\n" \
2249 "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \
2250 "\t-u MASK\tSet the umask to MASK before executing every program."
2251
2252#define rx_trivial_usage \
2253 "FILE"
2254#define rx_full_usage \
2255 "Receive a file using the xmodem protocol."
2256#define rx_example_usage \
2257 "$ rx /tmp/foo\n"
2258
2259#define sed_trivial_usage \
2260 "[-efinr] pattern [files...]"
2261#define sed_full_usage \
2262 "Options:\n" \
2263 "\t-e script\tadd the script to the commands to be executed\n" \
2264 "\t-f scriptfile\tadd script-file contents to the\n" \
2265 "\t\t\tcommands to be executed\n" \
2266 "\t-i\t\tedit files in-place\n" \
2267 "\t-n\t\tsuppress automatic printing of pattern space\n" \
2268 "\t-r\t\tuse extended regular expression syntax\n" \
2269 "\n" \
2270 "If no -e or -f is given, the first non-option argument is taken as the sed\n"\
2271 "script to interpret. All remaining arguments are names of input files; if no\n"\
2272 "input files are specified, then the standard input is read. Source files\n" \
2273 "will not be modified unless -i option is given."
2274
2275#define sed_example_usage \
2276 "$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
2277 "bar\n"
2278
2279#define seq_trivial_usage \
2280 "[first [increment]] last"
2281#define seq_full_usage \
2282 "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \
2283 "FIRST, INCREMENT default to 1\n" \
2284 "Arguments:\n" \
2285 "\tLAST\n" \
2286 "\tFIRST\tLAST\n" \
2287 "\tFIRST\tINCREMENT\tLAST"
2288
2289#define setkeycodes_trivial_usage \
2290 "SCANCODE KEYCODE ..."
2291#define setkeycodes_full_usage \
2292 "Set entries into the kernel's scancode-to-keycode map,\n" \
2293 "allowing unusual keyboards to generate usable keycodes.\n\n" \
2294 "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
2295 "and KEYCODE is given in decimal"
2296#define setkeycodes_example_usage \
2297 "$ setkeycodes e030 127\n"
2298
2299#define lash_trivial_usage \
2300 "[FILE]...\n" \
2301 "or: sh -c command [args]..."
2302#define lash_full_usage \
2303 "The BusyBox LAme SHell (command interpreter)"
2304#define lash_notes_usage \
2305 "This command does not yet have proper documentation.\n\n" \
2306 "Use lash just as you would use any other shell. It properly handles pipes,\n" \
2307 "redirects, job control, can be used as the shell for scripts, and has a\n" \
2308 "sufficient set of builtins to do what is needed. It does not (yet) support\n" \
2309 "Bourne Shell syntax. If you need things like "if-then-else", "while", and such\n" \
2310 "use ash or bash. If you just need a very simple and extremely small shell,\n" \
2311 "this will do the job."
2312
2313#define last_trivial_usage \
2314 ""
2315#define last_full_usage \
2316 "Shows listing of the last users that logged into the system"
2317
2318#define sha1sum_trivial_usage \
2319 "[OPTION] [FILEs...]" \
2320 USAGE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]")
2321#define sha1sum_full_usage \
2322 "Print" USAGE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n\n" \
2323 "Options:\n" \
2324 "With no FILE, or when FILE is -, read standard input." \
2325 USAGE_MD5_SHA1_SUM_CHECK("\n\n" \
2326 "\t-c\tcheck SHA1 sums against given list\n" \
2327 "\nThe following two options are useful only when verifying checksums:\n" \
2328 "\t-s\tdon't output anything, status code shows success\n" \
2329 "\t-w\twarn about improperly formated SHA1 checksum lines")
2330
2331#ifdef CONFIG_FEATURE_FANCY_SLEEP
2332 #define USAGE_FANCY_SLEEP(a) a
2333 #define USAGE_NOT_FANCY_SLEEP(a)
2334#else
2335 #define USAGE_FANCY_SLEEP(a)
2336 #define USAGE_NOT_FANCY_SLEEP(a) a
2337#endif
2338
2339#define sleep_trivial_usage \
2340 USAGE_FANCY_SLEEP("[") "N" USAGE_FANCY_SLEEP("]...")
2341#define sleep_full_usage \
2342 USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \
2343 USAGE_FANCY_SLEEP( \
2344 "Pause for a time equal to the total of the args given, where each arg can\n" \
2345 "\t\thave an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.")
2346#define sleep_example_usage \
2347 "$ sleep 2\n" \
2348 "[2 second delay results]\n" \
2349 USAGE_FANCY_SLEEP("$ sleep 1d 3h 22m 8s\n" \
2350 "[98528 second delay results]\n")
2351
2352#ifdef CONFIG_FEATURE_SORT_UNIQUE
2353 #define USAGE_SORT_UNIQUE(a) a
2354#else
2355 #define USAGE_SORT_UNIQUE(a)
2356#endif
2357#ifdef CONFIG_FEATURE_SORT_REVERSE
2358 #define USAGE_SORT_REVERSE(a) a
2359#else
2360 #define USAGE_SORT_REVERSE(a)
2361#endif
2362#define sort_trivial_usage \
2363 "[-n" USAGE_SORT_REVERSE("r") USAGE_SORT_UNIQUE("u") "] [FILE]..."
2364#define sort_full_usage \
2365 "Sorts lines of text in the specified files\n\n"\
2366 "Options:\n" \
2367 USAGE_SORT_UNIQUE("\t-u\tsuppress duplicate lines\n") \
2368 USAGE_SORT_REVERSE("\t-r\tsort in reverse order\n") \
2369 "\t-n\tsort numerics"
2370#define sort_example_usage \
2371 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
2372 "a\n" \
2373 "b\n" \
2374 "c\n" \
2375 "d\n" \
2376 "e\n" \
2377 "f\n"
2378
2379#define start_daemon_trivial_usage \
2380 ""
2381#define start_daemon_full_usage \
2382 "LSB start_daemon."
2383#define start_daemon_example_usage \
2384 "$ start_daemon 5\n"
2385
2386
2387#define start_stop_daemon_trivial_usage \
2388 "[OPTIONS] [--start|--stop] ... [-- arguments...]\n"
2389#define start_stop_daemon_full_usage \
2390 "Program to start and stop services."\
2391 "\n\nOptions:"\
2392 "\n\t-S|--start\t\t\tstart"\
2393 "\n\t-K|--stop\t\t\tstop"\
2394 "\n\t-a|--startas <pathname>\t\tstarts process specified by pathname"\
2395 "\n\t-b|--background\t\t\tforce process into background"\
2396 "\n\t-u|--user <username>|<uid>\tstop this user's processes"\
2397 "\n\t-x|--exec <executable>\t\tprogram to either start or check"\
2398 "\n\t-m|--make-pidfile <filename>\tcreate the -p file and enter pid in it"\
2399 "\n\t-n|--name <process-name>\tstop processes with this name"\
2400 "\n\t-p|--pidfile <pid-file>\t\tsave or load pid using a pid-file"\
2401 "\n\t-q|--quiet\t\t\tbe quiet" \
2402 "\n\t-s|--signal <signal>\t\tsignal to send (default TERM)"
2403
2404#define strings_trivial_usage \
2405 "[-afo] [-n length] [file ... ]"
2406#define strings_full_usage \
2407 "Display printable strings in a binary file." \
2408 "\n\nOptions:" \
2409 "\n\t-a\tScan the whole files (this is the default)."\
2410 "\n\t-f\tPrecede each string with the name of the file where it was found." \
2411 "\n\t-n N\tSpecifies that at least N characters forms a sequence (default 4)" \
2412 "\n\t-o\tEach string is preceded by its decimal offset in the file."
2413
2414#define stty_trivial_usage \
2415 "[-a|g] [-F DEVICE] [SETTING]..."
2416#define stty_full_usage \
2417 "Without arguments, prints baud rate, line discipline," \
2418 "\nand deviations from stty sane." \
2419 "\n\nOptions:" \
2420 "\n\t-F DEVICE\topen device instead of stdin" \
2421 "\n\t-a\t\tprint all current settings in human-readable form" \
2422 "\n\t-g\t\tprint in stty-readable form" \
2423 "\n\t[SETTING]\tsee manpage"
2424
2425#define su_trivial_usage \
2426 "[OPTION]... [-] [username]"
2427#define su_full_usage \
2428 "Change user id or become root.\n" \
2429 "Options:\n" \
2430 "\t-p\tPreserve environment"
2431
2432#define sulogin_trivial_usage \
2433 "[OPTION]... [tty-device]"
2434#define sulogin_full_usage \
2435 "Single user login\n" \
2436 "Options:\n" \
2437 "\t-f\tDo not authenticate (user already authenticated)\n" \
2438 "\t-h\tName of the remote host for this login.\n" \
2439 "\t-p\tPreserve environment."
2440
2441#define swapoff_trivial_usage \
2442 "[OPTION] [DEVICE]"
2443#define swapoff_full_usage \
2444 "Stop swapping virtual memory pages on DEVICE.\n\n" \
2445 "Options:\n" \
2446 "\t-a\tStop swapping on all swap devices"
2447
2448#define swapon_trivial_usage \
2449 "[OPTION] [DEVICE]"
2450#define swapon_full_usage \
2451 "Start swapping virtual memory pages on DEVICE.\n\n" \
2452 "Options:\n" \
2453 "\t-a\tStart swapping on all swap devices"
2454
2455#define sync_trivial_usage \
2456 ""
2457#define sync_full_usage \
2458 "Write all buffered filesystem blocks to disk."
2459
2460
2461#ifdef CONFIG_FEATURE_ROTATE_LOGFILE
2462 #define USAGE_ROTATE_LOGFILE(a) a
2463#else
2464 #define USAGE_ROTATE_LOGFILE(a)
2465#endif
2466#ifdef CONFIG_FEATURE_REMOTE_LOG
2467 #define USAGE_REMOTE_LOG(a) a
2468#else
2469 #define USAGE_REMOTE_LOG(a)
2470#endif
2471#ifdef CONFIG_FEATURE_IPC_SYSLOG
2472 #define USAGE_IPC_LOG(a) a
2473#else
2474 #define USAGE_IPC_LOG(a)
2475#endif
2476
2477#ifdef CONFIG_SYSCTL
2478#define sysctl_trivial_usage \
2479 "[OPTIONS]... [VALUE]...\n"
2480#define sysctl_full_usage
2481 "sysctl - configure kernel parameters at runtime\n\n" \
2482 "Options:\n" \
2483 "\t-n\tUse this option to disable printing of the key name when printing values.\n" \
2484 "\t-w\tUse this option when you want to change a sysctl setting.\n" \
2485 "\t-p\tLoad in sysctl settings from the file specified or /etc/sysctl.conf if none given.\n" \
2486 "\t-a\tDisplay all values currently available.\n" \
2487 "\t-A\tDisplay all values currently available in table form."
2488#define sysctl_example_usage
2489 "sysctl [-n] variable ...\n" \
2490 "sysctl [-n] -w variable=value ...\n" \
2491 "sysctl [-n] -a\n" \
2492 "sysctl [-n] -p <file>\t(default /etc/sysctl.conf)\n" \
2493 "sysctl [-n] -A\n"
2494#endif
2495
2496#define syslogd_trivial_usage \
2497 "[OPTION]..."
2498#define syslogd_full_usage \
2499 "Linux system and kernel logging utility.\n" \
2500 "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \
2501 "Options:\n" \
2502 "\t-m MIN\t\tMinutes between MARK lines (default=20, 0=off)\n" \
2503 "\t-n\t\tRun as a foreground process\n" \
2504 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" \
2505 "\t-S\t\tMake logging output smaller." \
2506 USAGE_ROTATE_LOGFILE( \
2507 "\n\t-s SIZE\t\tMax size (KB) before rotate (default=200KB, 0=off)\n" \
2508 "\t-b NUM\t\tNumber of rotated logs to keep (default=1, max=99, 0=purge)") \
2509 USAGE_REMOTE_LOG( \
2510 "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \
2511 "\t-L\t\tLog locally and via network logging (default is network only)") \
2512 USAGE_IPC_LOG( \
2513 "\n\t-C [size(KiB)]\tLog to a circular buffer (read the buffer using logread)")
2514#define syslogd_example_usage \
2515 "$ syslogd -R masterlog:514\n" \
2516 "$ syslogd -R 192.168.1.1:601\n"
2517
2518
2519#ifndef CONFIG_FEATURE_FANCY_TAIL
2520 #define USAGE_UNSIMPLE_TAIL(a)
2521#else
2522 #define USAGE_UNSIMPLE_TAIL(a) a
2523#endif
2524#define tail_trivial_usage \
2525 "[OPTION]... [FILE]..."
2526#define tail_full_usage \
2527 "Print last 10 lines of each FILE to standard output.\n" \
2528 "With more than one FILE, precede each with a header giving the\n" \
2529 "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
2530 "Options:\n" \
2531 USAGE_UNSIMPLE_TAIL("\t-c N[kbm]\toutput the last N bytes\n") \
2532 "\t-n N[kbm]\tprint last N lines instead of last 10\n" \
2533 "\t-f\t\toutput data as the file grows" \
2534 USAGE_UNSIMPLE_TAIL( "\n\t-q\t\tnever output headers giving file names\n" \
2535 "\t-s SEC\t\twait SEC seconds between reads with -f\n" \
2536 "\t-v\t\talways output headers giving file names\n\n" \
2537 "If the first character of N (bytes or lines) is a '+', output begins with \n" \
2538 "the Nth item from the start of each file, otherwise, print the last N items\n" \
2539 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." )
2540#define tail_example_usage \
2541 "$ tail -n 1 /etc/resolv.conf\n" \
2542 "nameserver 10.0.0.1\n"
2543
2544#ifdef CONFIG_FEATURE_TAR_CREATE
2545 #define USAGE_TAR_CREATE(a) a
2546#else
2547 #define USAGE_TAR_CREATE(a)
2548#endif
2549#ifdef CONFIG_FEATURE_TAR_EXCLUDE
2550 #define USAGE_TAR_EXCLUDE(a) a
2551#else
2552 #define USAGE_TAR_EXCLUDE(a)
2553#endif
2554#ifdef CONFIG_FEATURE_TAR_GZIP
2555 #define USAGE_TAR_GZIP(a) a
2556#else
2557 #define USAGE_TAR_GZIP(a)
2558#endif
2559#ifdef CONFIG_FEATURE_TAR_BZIP2
2560 #define USAGE_TAR_BZIP2(a) a
2561#else
2562 #define USAGE_TAR_BZIP2(a)
2563#endif
2564#ifdef CONFIG_FEATURE_TAR_COMPRESS
2565 #define USAGE_TAR_COMPRESS(a) a
2566#else
2567 #define USAGE_TAR_COMPRESS(a)
2568#endif
2569
2570#define tar_trivial_usage \
2571 "-[" USAGE_TAR_CREATE("c") USAGE_TAR_GZIP("z") USAGE_TAR_BZIP2("j") USAGE_TAR_COMPRESS("Z") "xtvO] " \
2572 USAGE_TAR_EXCLUDE("[-X FILE]") \
2573 "[-f TARFILE] [-C DIR] [FILE(s)] ..."
2574#define tar_full_usage \
2575 "Create, extract, or list files from a tar file.\n\n" \
2576 "Options:\n" \
2577 USAGE_TAR_CREATE("\tc\t\tcreate\n") \
2578 "\tx\t\textract\n" \
2579 "\tt\t\tlist\n" \
2580 "\nArchive format selection:\n" \
2581 USAGE_TAR_GZIP("\tz\t\tFilter the archive through gzip\n") \
2582 USAGE_TAR_BZIP2("\tj\t\tFilter the archive through bzip2\n") \
2583 USAGE_TAR_COMPRESS("\tZ\t\tFilter the archive through compress\n") \
2584 "\nFile selection:\n" \
2585 "\tf\t\tname of TARFILE or \"-\" for stdin\n" \
2586 "\tO\t\textract to stdout\n" \
2587 USAGE_TAR_EXCLUDE( \
2588 "\texclude\t\tfile to exclude\n" \
2589 "\tX\t\tfile with names to exclude\n" \
2590 ) \
2591 "\tC\t\tchange to directory DIR before operation\n" \
2592 "\tv\t\tverbosely list files processed"
2593#define tar_example_usage \
2594 "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
2595 "$ tar -cf /tmp/tarball.tar /usr/local\n"
2596
2597#define tee_trivial_usage \
2598 "[OPTION]... [FILE]..."
2599#define tee_full_usage \
2600 "Copy standard input to each FILE, and also to standard output.\n\n" \
2601 "Options:\n" \
2602 "\t-a\tappend to the given FILEs, do not overwrite\n" \
2603 "\t-i\tignore interrupt signals (SIGINT)"
2604#define tee_example_usage \
2605 "$ echo "Hello" | tee /tmp/foo\n" \
2606 "$ cat /tmp/foo\n" \
2607 "Hello\n"
2608
2609#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
2610#define telnet_trivial_usage \
2611 "[-a] [-l USER] HOST [PORT]"
2612#define telnet_full_usage \
2613 "Telnet is used to establish interactive communication with another\n" \
2614 "computer over a network using the TELNET protocol.\n\n" \
2615 "Options:\n" \
2616 "\t-a\t\tAttempt an automatic login with the USER variable.\n" \
2617 "\t-l USER\t\tAttempt an automatic login with the USER argument.\n" \
2618 "\tHOST\t\tThe official name, alias or the IP address of the\n" \
2619 "\t\t\tremote host.\n" \
2620 "\tPORT\t\tThe remote port number to connect to. If it is not\n" \
2621 "\t\t\tspecified, the default telnet (23) port is used."
2622#else
2623#define telnet_trivial_usage \
2624 "HOST [PORT]"
2625#define telnet_full_usage \
2626 "Telnet is used to establish interactive communication with another\n"\
2627 "computer over a network using the TELNET protocol."
2628#endif
2629
2630#ifdef CONFIG_FEATURE_TELNETD_INETD
2631#define telnetd_trivial_usage \
2632 "(inetd mode) [OPTION]"
2633#define telnetd_full_usage \
2634 "Telnetd uses incoming TELNET connections via inetd.\n"\
2635 "Options:\n" \
2636 "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n" \
2637 "\t-f issue_file\tDisplay issue_file instead of /etc/issue."
2638#else
2639#define telnetd_trivial_usage \
2640 "[OPTION]"
2641#define telnetd_full_usage \
2642 "Telnetd listens for incoming TELNET connections on PORT.\n"\
2643 "Options:\n" \
2644 "\t-p PORT\tlisten for connections on PORT (default 23)\n"\
2645 "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n"\
2646 "\t-f issue_file\tDisplay issue_file instead of /etc/issue."
2647#endif
2648
2649#define test_trivial_usage \
2650 "EXPRESSION\n or [ EXPRESSION ]"
2651#define test_full_usage \
2652 "Checks file types and compares values returning an exit\n" \
2653 "code determined by the value of EXPRESSION."
2654#define test_example_usage \
2655 "$ test 1 -eq 2\n" \
2656 "$ echo $?\n" \
2657 "1\n" \
2658 "$ test 1 -eq 1\n" \
2659 "$ echo $?\n" \
2660 "0\n" \
2661 "$ [ -d /etc ]\n" \
2662 "$ echo $?\n" \
2663 "0\n" \
2664 "$ [ -d /junk ]\n" \
2665 "$ echo $?\n" \
2666 "1\n"
2667
2668#ifdef CONFIG_FEATURE_TFTP_GET
2669 #define USAGE_TFTP_GET(a) a
2670#else
2671 #define USAGE_TFTP_GET(a)
2672#endif
2673#ifdef CONFIG_FEATURE_TFTP_PUT
2674 #define USAGE_TFTP_PUT(a) a
2675#else
2676 #define USAGE_TFTP_PUT(a)
2677#endif
2678#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
2679 #define USAGE_TFTP_BS(a) a
2680#else
2681 #define USAGE_TFTP_BS(a)
2682#endif
2683
2684#define tftp_trivial_usage \
2685 "[OPTION]... HOST [PORT]"
2686#define tftp_full_usage \
2687 "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
2688 "Options:\n" \
2689 "\t-l FILE\tLocal FILE.\n" \
2690 "\t-r FILE\tRemote FILE." \
2691 USAGE_TFTP_GET( \
2692 "\n\t-g\tGet file." \
2693 ) \
2694 USAGE_TFTP_PUT( \
2695 "\n\t-p\tPut file." \
2696 ) \
2697 USAGE_TFTP_BS( \
2698 "\n\t-b SIZE\tTransfer blocks of SIZE octets." \
2699 )
2700#define time_trivial_usage \
2701 "[OPTION]... COMMAND [ARGS...]"
2702#define time_full_usage \
2703 "Runs the program COMMAND with arguments ARGS. When COMMAND finishes,\n" \
2704 "COMMAND's resource usage information is displayed\n\n" \
2705 "Options:\n" \
2706 "\t-v\tDisplays verbose resource usage information."
2707
2708#define top_trivial_usage \
2709 "[-d <seconds>]"
2710#define top_full_usage \
2711 "top provides an view of processor activity in real time.\n" \
2712 "This utility reads the status for all processes in /proc each <seconds>\n" \
2713 "and shows the status for however many processes will fit on the screen.\n" \
2714 "This utility will not show processes that are started after program startup,\n" \
2715 "but it will show the EXIT status for and PIDs that exit while it is running."
2716
2717#define touch_trivial_usage \
2718 "[-c] FILE [FILE ...]"
2719#define touch_full_usage \
2720 "Update the last-modified date on the given FILE[s].\n\n" \
2721 "Options:\n" \
2722 "\t-c\tDo not create any files"
2723#define touch_example_usage \
2724 "$ ls -l /tmp/foo\n" \
2725 "/bin/ls: /tmp/foo: No such file or directory\n" \
2726 "$ touch /tmp/foo\n" \
2727 "$ ls -l /tmp/foo\n" \
2728 "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n"
2729
2730#define tr_trivial_usage \
2731 "[-cds] STRING1 [STRING2]"
2732#define tr_full_usage \
2733 "Translate, squeeze, and/or delete characters from\n" \
2734 "standard input, writing to standard output.\n\n" \
2735 "Options:\n" \
2736 "\t-c\ttake complement of STRING1\n" \
2737 "\t-d\tdelete input characters coded STRING1\n" \
2738 "\t-s\tsqueeze multiple output characters of STRING2 into one character"
2739#define tr_example_usage \
2740 "$ echo "gdkkn vnqkc" | tr [a-y] [b-z]\n" \
2741 "hello world\n"
2742
2743#define traceroute_trivial_usage \
2744 "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n"\
2745 "\t[-s src_addr] [-t tos] [-w wait] host [data size]"
2746#define traceroute_full_usage \
2747 "trace the route ip packets follow going to \"host\"\n" \
2748 "Options:\n" \
2749 "\t-d\tset SO_DEBUG options to socket\n" \
2750 "\t-n\tPrint hop addresses numerically rather than symbolically\n" \
2751 "\t-r\tBypass the normal routing tables and send directly to a host\n" \
2752 "\t-v\tVerbose output\n" \
2753 "\t-m max_ttl\tSet the max time-to-live (max number of hops)\n" \
2754 "\t-p port#\tSet the base UDP port number used in probes\n" \
2755 "\t\t(default is 33434)\n" \
2756 "\t-q nqueries\tSet the number of probes per ``ttl'' to nqueries\n" \
2757 "\t\t(default is 3)\n" \
2758 "\t-s src_addr\tUse the following IP address as the source address\n" \
2759 "\t-t tos\tSet the type-of-service in probe packets to the following value\n" \
2760 "\t\t(default 0)\n" \
2761 "\t-w wait\tSet the time (in seconds) to wait for a response to a probe\n" \
2762 "\t\t(default 3 sec.)."
2763
2764
2765#define true_trivial_usage \
2766 ""
2767#define true_full_usage \
2768 "Return an exit code of TRUE (0)."
2769#define true_example_usage \
2770 "$ true\n" \
2771 "$ echo $?\n" \
2772 "0\n"
2773
2774#define tty_trivial_usage \
2775 ""
2776#define tty_full_usage \
2777 "Print the file name of the terminal connected to standard input.\n\n"\
2778 "Options:\n" \
2779 "\t-s\tprint nothing, only return an exit status"
2780#define tty_example_usage \
2781 "$ tty\n" \
2782 "/dev/tty2\n"
2783
2784#define udhcpc_trivial_usage \
2785 "[-fbnqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]"
2786#define udhcpc_full_usage \
2787 "\t-c,\t--clientid=CLIENTID\tClient identifier\n" \
2788 "\t-H,\t--hostname=HOSTNAME\tClient hostname\n" \
2789 "\t-h,\t \tAlias for -H\n" \
2790 "\t-f,\t--foreground\tDo not fork after getting lease\n" \
2791 "\t-b,\t--background\tFork to background if lease cannot be immediately negotiated.\n" \
2792 "\t-i,\t--interface=INTERFACE\tInterface to use (default: eth0)\n" \
2793 "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated.\n" \
2794 "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \
2795 "\t-q,\t--quit\tQuit after obtaining lease\n" \
2796 "\t-r,\t--request=IP\tIP address to request (default: none)\n" \
2797 "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
2798 "\t-v,\t--version\tDisplay version"
2799
2800#define udhcpc_script_trivial_usage \
2801 "[ACTION]"
2802#define udhcpc_script_full_usage \
2803 "Should only be called by udhcpc."
2804
2805#define udhcpd_trivial_usage \
2806 "[configfile]\n" \
2807
2808#define udhcpd_full_usage \
2809 ""
2810
2811#ifdef CONFIG_FEATURE_MOUNT_FORCE
2812 #define USAGE_MOUNT_FORCE(a) a
2813#else
2814 #define USAGE_MOUNT_FORCE(a)
2815#endif
2816#define umount_trivial_usage \
2817 "[flags] FILESYSTEM|DIRECTORY"
2818#define umount_full_usage \
2819 "Unmount file systems\n" \
2820 "\nFlags:\n" "\t-a\tUnmount all file systems" \
2821 USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \
2822 "\n\t-r\tTry to remount devices as read-only if mount is busy" \
2823 USAGE_MOUNT_FORCE("\n\t-f\tForce umount (i.e., unreachable NFS server)") \
2824 USAGE_MOUNT_LOOP("\n\t-l\tDo not free loop device (if a loop device has been used)")
2825#define umount_example_usage \
2826 "$ umount /dev/hdc1 \n"
2827
2828#define uname_trivial_usage \
2829 "[OPTION]..."
2830#define uname_full_usage \
2831 "Print certain system information. With no OPTION, same as -s.\n\n" \
2832 "Options:\n" \
2833 "\t-a\tprint all information\n" \
2834 "\t-m\tthe machine (hardware) type\n" \
2835 "\t-n\tprint the machine's network node hostname\n" \
2836 "\t-r\tprint the operating system release\n" \
2837 "\t-s\tprint the operating system name\n" \
2838 "\t-p\tprint the host processor type\n" \
2839 "\t-v\tprint the operating system version"
2840#define uname_example_usage \
2841 "$ uname -a\n" \
2842 "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
2843
2844#define uncompress_trivial_usage \
2845 "[-c] [-f] [ name ... ]"
2846#define uncompress_full_usage \
2847 "Uncompress .Z file[s]\n" \
2848 "Options:\n" \
2849 "\t-c\textract to stdout\n" \
2850 "\t-f\tforce overwrite an existing file"
2851
2852#define uniq_trivial_usage \
2853 "[OPTION]... [INPUT [OUTPUT]]"
2854#define uniq_full_usage \
2855 "Discard all but one of successive identical lines from INPUT\n" \
2856 "(or standard input), writing to OUTPUT (or standard output).\n\n" \
2857 "Options:\n" \
2858 "\t-c\tprefix lines by the number of occurrences\n" \
2859 "\t-d\tonly print duplicate lines\n" \
2860 "\t-u\tonly print unique lines\n" \
2861 "\t-f N\tskip the first N fields\n" \
2862 "\t-s N\tskip the first N chars (after any skipped fields)"
2863#define uniq_example_usage \
2864 "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
2865 "a\n" \
2866 "b\n" \
2867 "c\n"
2868
2869#define unix2dos_trivial_usage \
2870 "[option] [FILE]"
2871#define unix2dos_full_usage \
2872 "Converts FILE from unix format to dos format. When no option\n" \
2873 "is given, the input is converted to the opposite output format.\n" \
2874 "When no file is given, uses stdin for input and stdout for output.\n" \
2875 "Options:\n" \
2876 "\t-u\toutput will be in UNIX format\n" \
2877 "\t-d\toutput will be in DOS format"
2878
2879#define unzip_trivial_usage \
2880 "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]"
2881#define unzip_full_usage \
2882 "Extracts files from ZIP archives.\n\n" \
2883 "Options:\n" \
2884 "\t-l\tlist archive contents (short form)\n" \
2885 "\t-n\tnever overwrite existing files (default)\n" \
2886 "\t-o\toverwrite files without prompting\n" \
2887 "\t-p\tsend output to stdout\n" \
2888 "\t-q\tbe quiet\n" \
2889 "\t-x\texclude these files\n" \
2890 "\t-d\textract files into this directory"
2891
2892#define uptime_trivial_usage \
2893 ""
2894#define uptime_full_usage \
2895 "Display the time since the last boot."
2896#define uptime_example_usage \
2897 "$ uptime\n" \
2898 " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
2899
2900#define usleep_trivial_usage \
2901 "N"
2902#define usleep_full_usage \
2903 "Pause for N microseconds."
2904#define usleep_example_usage \
2905 "$ usleep 1000000\n" \
2906 "[pauses for 1 second]\n"
2907
2908#define uudecode_trivial_usage \
2909 "[FILE]..."
2910#define uudecode_full_usage \
2911 "Uudecode a file that is uuencoded.\n\n" \
2912 "Options:\n" \
2913 "\t-o FILE\tdirect output to FILE"
2914#define uudecode_example_usage \
2915 "$ uudecode -o busybox busybox.uu\n" \
2916 "$ ls -l busybox\n" \
2917 "-rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox\n"
2918
2919#define uuencode_trivial_usage \
2920 "[OPTION] [INFILE] REMOTEFILE"
2921#define uuencode_full_usage \
2922 "Uuencode a file.\n\n" \
2923 "Options:\n" \
2924 "\t-m\tuse base64 encoding per RFC1521"
2925#define uuencode_example_usage \
2926 "$ uuencode busybox busybox\n" \
2927 "begin 755 busybox\n" \
2928 "<encoded file snipped>\n" \
2929 "$ uudecode busybox busybox > busybox.uu\n" \
2930 "$\n"
2931
2932#define vconfig_trivial_usage \
2933 "COMMAND [OPTIONS] ..."
2934#define vconfig_full_usage \
2935 "vconfig lets you create and remove virtual ethernet devices.\n\n" \
2936 "Options:\n" \
2937 "\tadd [interface-name] [vlan_id]\n" \
2938 "\trem [vlan-name]\n" \
2939 "\tset_flag [interface-name] [flag-num] [0 | 1]\n" \
2940 "\tset_egress_map [vlan-name] [skb_priority] [vlan_qos]\n" \
2941 "\tset_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n" \
2942 "\tset_name_type [name-type]"
2943
2944#define vi_trivial_usage \
2945 "[OPTION] [FILE]..."
2946#define vi_full_usage \
2947 "edit FILE.\n\n" \
2948 "Options:\n" \
2949 "\t-R\tRead-only- do not write to the file."
2950
2951#define vlock_trivial_usage \
2952 "[OPTIONS]"
2953#define vlock_full_usage \
2954 "Lock a virtual terminal. A password is required to unlock\n" \
2955 "Options:\n" \
2956 "\t-a\tLock all VTs"
2957
2958#define watch_trivial_usage \
2959 "[-n <seconds>] COMMAND..."
2960#define watch_full_usage \
2961 "Executes a program periodically.\n" \
2962 "Options:\n" \
2963 "\t-n\tLoop period in seconds - default is 2."
2964#define watch_example_usage \
2965 "$ watch date\n" \
2966 "Mon Dec 17 10:31:40 GMT 2000\n" \
2967 "Mon Dec 17 10:31:42 GMT 2000\n" \
2968 "Mon Dec 17 10:31:44 GMT 2000"
2969
2970#define watchdog_trivial_usage \
2971 "[-t <seconds>] DEV"
2972#define watchdog_full_usage \
2973 "Periodically write to watchdog device DEV.\n" \
2974 "Options:\n" \
2975 "\t-t\tTimer period in seconds - default is 30."
2976
2977#define wc_trivial_usage \
2978 "[OPTION]... [FILE]..."
2979#define wc_full_usage \
2980 "Print line, word, and byte counts for each FILE, and a total line if\n" \
2981 "more than one FILE is specified. With no FILE, read standard input.\n\n" \
2982 "Options:\n" \
2983 "\t-c\tprint the byte counts\n" \
2984 "\t-l\tprint the newline counts\n" \
2985 "\t-L\tprint the length of the longest line\n" \
2986 "\t-w\tprint the word counts"
2987#define wc_example_usage \
2988 "$ wc /etc/passwd\n" \
2989 " 31 46 1365 /etc/passwd\n"
2990
2991#define wget_trivial_usage \
2992 "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \
2993 "\t\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url"
2994#define wget_full_usage \
2995 "wget retrieves files via HTTP or FTP\n\n" \
2996 "Options:\n" \
2997 "\t-c\tcontinue retrieval of aborted transfers\n" \
2998 "\t-q\tquiet mode - do not print\n" \
2999 "\t-P\tSet directory prefix to DIR\n" \
3000 "\t-O\tsave to filename ('-' for stdout)\n" \
3001 "\t-Y\tuse proxy ('on' or 'off')"
3002
3003#define which_trivial_usage \
3004 "[COMMAND ...]"
3005#define which_full_usage \
3006 "Locates a COMMAND."
3007#define which_example_usage \
3008 "$ which login\n" \
3009 "/bin/login\n"
3010
3011#define who_trivial_usage \
3012 " "
3013#define who_full_usage \
3014 "Prints the current user names and related information"
3015
3016#define whoami_trivial_usage \
3017 ""
3018#define whoami_full_usage \
3019 "Prints the user name associated with the current effective user id."
3020
3021#ifdef CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION
3022#define USAGE_XARGS_CONFIRMATION(a) a
3023#else
3024#define USAGE_XARGS_CONFIRMATION(a)
3025#endif
3026#ifdef CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT
3027#define USAGE_XARGS_TERMOPT(a) a
3028#else
3029#define USAGE_XARGS_TERMOPT(a)
3030#endif
3031#ifdef CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
3032#define USAGE_XARGS_ZERO_TERM(a) a
3033#else
3034#define USAGE_XARGS_ZERO_TERM(a)
3035#endif
3036
3037
3038#define xargs_trivial_usage \
3039 "[COMMAND] [OPTIONS] [ARGS...]"
3040#define xargs_full_usage \
3041 "Executes COMMAND on every item given by standard input.\n\n" \
3042 "Options:\n" \
3043 USAGE_XARGS_CONFIRMATION("\t-p\tPrompt the user about whether to run each command\n") \
3044 "\t-r\tDo not run command for empty readed lines\n" \
3045 USAGE_XARGS_TERMOPT("\t-x\tExit if the size is exceeded\n") \
3046 USAGE_XARGS_ZERO_TERM("\t-0\tInput filenames are terminated by a null character\n") \
3047 "\t-t\tPrint the command line on stderr before executing it."
3048#define xargs_example_usage \
3049 "$ ls | xargs gzip\n" \
3050 "$ find . -name '*.c' -print | xargs rm\n"
3051
3052#define yes_trivial_usage \
3053 "[OPTION]... [STRING]..."
3054#define yes_full_usage \
3055 "Repeatedly outputs a line with all specified STRING(s), or 'y'."
3056
3057#define zcat_trivial_usage \
3058 "FILE"
3059#define zcat_full_usage \
3060 "Uncompress to stdout."
3061
3062#endif /* __BB_USAGE_H__ */
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
diff --git a/urunlevel/networking/udhcp/dhcpc.h b/urunlevel/networking/udhcp/dhcpc.h
deleted file mode 100644
index 25252af..0000000
--- a/urunlevel/networking/udhcp/dhcpc.h
+++ /dev/null
@@ -1,38 +0,0 @@
1/* dhcpc.h */
2#ifndef _DHCPC_H
3#define _DHCPC_H
4
5//#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
6#define DEFAULT_SCRIPT "/sbin/udhcpc_script"
7
8/* allow libbb_udhcp.h to redefine DEFAULT_SCRIPT */
9#include "libbb_udhcp.h"
10
11#define INIT_SELECTING 0
12#define REQUESTING 1
13#define BOUND 2
14#define RENEWING 3
15#define REBINDING 4
16#define INIT_REBOOT 5
17#define RENEW_REQUESTED 6
18#define RELEASED 7
19
20
21struct client_config_t {
22 char foreground; /* Do not fork */
23 char quit_after_lease; /* Quit after obtaining lease */
24 char abort_if_no_lease; /* Abort if no lease */
25 char background_if_no_lease; /* Fork to background if no lease */
26 char *interface; /* The name of the interface to use */
27 char *pidfile; /* Optionally store the process ID */
28 char *script; /* User script to run at dhcp events */
29 uint8_t *clientid; /* Optional client id to use */
30 uint8_t *hostname; /* Optional hostname to use */
31 int ifindex; /* Index number of the interface to use */
32 uint8_t arp[6]; /* Our arp address */
33};
34
35extern struct client_config_t client_config;
36
37
38#endif
diff --git a/urunlevel/networking/udhcp/libbb_udhcp.h b/urunlevel/networking/udhcp/libbb_udhcp.h
deleted file mode 100644
index 3204be0..0000000
--- a/urunlevel/networking/udhcp/libbb_udhcp.h
+++ /dev/null
@@ -1,55 +0,0 @@
1/* libbb_udhcp.h - busybox compatability wrapper */
2
3/* bit of a hack, do this no matter what the order of the includes.
4 * (for busybox) */
5
6#ifdef CONFIG_INSTALL_NO_USR
7#undef DEFAULT_SCRIPT
8//#define DEFAULT_SCRIPT "/share/udhcpc/default.script"
9#define DEFAULT_SCRIPT "/sbin/udhcpc_script"
10#endif
11
12#ifndef _LIBBB_UDHCP_H
13#define _LIBBB_UDHCP_H
14
15#ifdef IN_BUSYBOX
16#include "busybox.h"
17
18#ifdef CONFIG_FEATURE_UDHCP_SYSLOG
19#define UDHCP_SYSLOG
20#endif
21
22#ifdef CONFIG_FEATURE_UDHCP_DEBUG
23#define UDHCP_DEBUG
24#endif
25
26#define COMBINED_BINARY
27#include "version.h"
28
29#define xfopen bb_xfopen
30
31#else /* ! BB_VER */
32
33#include <stdlib.h>
34#include <stdio.h>
35#include <sys/sysinfo.h>
36
37#define TRUE 1
38#define FALSE 0
39
40#define xmalloc malloc
41#define xcalloc calloc
42
43static inline FILE *xfopen(const char *file, const char *mode)
44{
45 FILE *fp;
46 if (!(fp = fopen(file, mode))) {
47 perror("could not open input file");
48 exit(0);
49 }
50 return fp;
51}
52
53#endif /* BB_VER */
54
55#endif /* _LIBBB_UDHCP_H */
diff --git a/urunlevel/sysdeps/linux/Config.in b/urunlevel/sysdeps/linux/Config.in
deleted file mode 100644
index 2e364f2..0000000
--- a/urunlevel/sysdeps/linux/Config.in
+++ /dev/null
@@ -1,296 +0,0 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6mainmenu "BusyBox Configuration"
7
8config HAVE_DOT_CONFIG
9 bool
10 default y
11
12menu "General Configuration"
13
14choice
15 prompt "Buffer allocation policy"
16 default CONFIG_FEATURE_BUFFERS_USE_MALLOC
17 help
18 There are 3 ways BusyBox can handle buffer allocations:
19 - Use malloc. This costs code size for the call to xmalloc.
20 - Put them on stack. For some very small machines with limited stack
21 space, this can be deadly. For most folks, this works just fine.
22 - Put them in BSS. This works beautifully for computers with a real
23 MMU (and OS support), but wastes runtime RAM for uCLinux. This
24 behavior was the only one available for BusyBox versions 0.48 and
25 earlier.
26
27config CONFIG_FEATURE_BUFFERS_USE_MALLOC
28 bool "Allocate with Malloc"
29
30config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
31 bool "Allocate on the Stack"
32
33config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
34 bool "Allocate in the .bss section"
35
36endchoice
37
38config CONFIG_FEATURE_VERBOSE_USAGE
39 bool "Show verbose applet usage messages"
40 default n
41 help
42 All BusyBox applets will show more verbose help messages when
43 busybox is invoked with --help. This will add a lot of text to the
44 busybox binary. In the default configuration, this will add about
45 13k, but it can add much more depending on your configuration.
46
47config CONFIG_FEATURE_INSTALLER
48 bool "Support --install [-s] to install applet links at runtime"
49 default n
50 help
51 Enable 'busybox --install [-s]' support. This will allow you to use
52 busybox at runtime to create hard links or symlinks for all the
53 applets that are compiled into busybox. This feature requires the
54 /proc filesystem.
55
56config CONFIG_LOCALE_SUPPORT
57 bool "Enable locale support (system needs locale for this to work)"
58 default n
59 help
60 Enable this if your system has locale support and you would like
61 busybox to support locale settings.
62
63config CONFIG_FEATURE_DEVFS
64 bool "Support for devfs"
65 default n
66 help
67 Enable if you want BusyBox to work with devfs.
68
69config CONFIG_FEATURE_DEVPTS
70 bool "Use the devpts filesystem for Unix98 PTYs"
71 default y if CONFIG_FEATURE_DEVFS
72 help
73 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
74 busybox will use /dev/ptmx for the master side of the pseudoterminal
75 and /dev/pts/<number> for the slave side. Otherwise, BSD style
76 /dev/ttyp<number> will be used. To use this option, you should have
77 devpts or devfs mounted.
78
79config CONFIG_FEATURE_CLEAN_UP
80 bool "Clean up all memory before exiting (usually not needed)"
81 default n
82 help
83 As a size optimization, busybox by default does not cleanup memory
84 that is dynamically allocated or close files before exiting. This
85 saves space and is usually not needed since the OS will clean up for
86 us. Don't enable this unless you have a really good reason to clean
87 things up manually.
88
89config CONFIG_FEATURE_SUID
90 bool "Support for SUID/SGID handling"
91 default n
92 help
93 Support SUID and SGID binaries.
94
95config CONFIG_FEATURE_SUID_CONFIG
96 bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
97 default y if CONFIG_FEATURE_SUID
98 depends on CONFIG_FEATURE_SUID
99 help
100 Allow the SUID / SGID state of an applet to be determined runtime by
101 checking /etc/busybox.conf. The format of this file is as follows:
102
103 <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
104
105 An example might help:
106
107 [SUID]
108 su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
109 su = ssx # exactly the same
110
111 mount = sx- root.disk # applet mount can be run by root and members of group disk
112 # and runs with euid=0
113
114 cp = --- # disable applet cp for everyone
115
116 Robert 'sandman' Griebl has more information here:
117 <url: http://www.softforge.de/bb/suid.html >.
118
119config CONFIG_FEATURE_SUID_CONFIG_QUIET
120 bool "Suppress warning message if /etc/busybox.conf is not readable"
121 default n
122 depends on CONFIG_FEATURE_SUID_CONFIG
123 help
124 /etc/busybox.conf should be readable by the user needing the SUID, check
125 this option to avoid users to be notified about missing permissions.
126
127config CONFIG_SELINUX
128 bool "Support NSA Security Enhanced Linux"
129 default n
130 help
131 Enable support for SE Linux in applets ls, ps, and id. Also provide
132 the option of compiling in SE Linux applets.
133
134 If you do not have a complete SE Linux Full Userland installed, this
135 stuff will not compile. Go visit
136 http://www.nsa.gov/selinux/index.html
137 to download the necessary stuff to allow busybox to compile with this
138 option enabled.
139
140 Most people will leave this set to 'N'.
141
142endmenu
143
144menu 'Build Options'
145
146config CONFIG_STATIC
147 bool "Build BusyBox as a static binary (no shared libs)"
148 default n
149 help
150 If you want to build a static BusyBox binary, which does not
151 use or require any shared libraries, then enable this option.
152 This can cause BusyBox to be considerably larger, so you should
153 leave this option false unless you have a good reason (i.e.
154 your target platform does not support shared libraries, or
155 you are building an initrd which doesn't need anything but
156 BusyBox, etc).
157
158 Most people will leave this set to 'N'.
159
160config CONFIG_LFS
161 bool "Build with Large File Support (for accessing files > 2 GB)"
162 default n
163 select FDISK_SUPPORT_LARGE_DISKS
164 help
165 If you want to build BusyBox with large file support, then enable
166 this option. This will have no effect if your kernel or your C
167 library lacks large file support for large files. Some of the
168 programs that can benefit from large file support include dd, gzip,
169 cp, mount, tar, and many others. If you want to access files larger
170 than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'.
171
172config USING_CROSS_COMPILER
173 bool "Do you want to build BusyBox with a Cross Compiler?"
174 default n
175 help
176 Do you want to build BusyBox with a Cross Compiler? If so,
177 then enable this option. Otherwise leave it set to 'N'.
178
179config CROSS_COMPILER_PREFIX
180 string "Cross Compiler prefix"
181 default "/usr/i386-linux-uclibc/bin/i386-uclibc-"
182 depends on USING_CROSS_COMPILER
183 help
184 If you want to build BusyBox with a cross compiler, then you
185 will need to set this to the cross-compiler prefix. For example,
186 if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc
187 then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
188 which will ensure the correct compiler is used.
189
190config EXTRA_CFLAGS_OPTIONS
191 string "Any extra CFLAGS options for the compiler?"
192 default ""
193 help
194 Do you want to pass any extra CFLAGS options to the compiler as
195 you build BusyBox? If so, this is the option for you... For example,
196 if you want to add some simple compiler switches (like -march=i686),
197 or check for warnings using -Werror, just those options here.
198
199endmenu
200
201menu 'Installation Options'
202
203config CONFIG_INSTALL_NO_USR
204 bool "Don't use /usr"
205 default n
206 help
207 Disable use of /usr. Don't activate this option if you don't know
208 that you really want this behaviour.
209
210config PREFIX
211 string "BusyBox installation prefix"
212 default "./_install"
213 help
214 Define your directory to install BusyBox files/subdirs in.
215
216
217
218endmenu
219
220source archival/Config.in
221source coreutils/Config.in
222source console-tools/Config.in
223source debianutils/Config.in
224source editors/Config.in
225source findutils/Config.in
226source my_linux/Config.in
227source runlevel/Config.in
228source init/Config.in
229source loginutils/Config.in
230source miscutils/Config.in
231source modutils/Config.in
232source networking/Config.in
233source procps/Config.in
234source shell/Config.in
235source sysklogd/Config.in
236source util-linux/Config.in
237
238menu 'Debugging Options'
239
240config CONFIG_DEBUG
241 bool "Build BusyBox with Debugging symbols"
242 default n
243 help
244 Say Y here if you wish to compile BusyBox with debugging symbols.
245 This will allow you to use a debugger to examine BusyBox internals
246 while applets are running. This increases the size of the binary
247 considerably and should only be used when doing development.
248 If you are doing development and want to debug BusyBox, answer Y.
249
250 Most people should answer N.
251
252choice
253 prompt "Additional debugging library"
254 default CONFIG_NO_DEBUG_LIB
255 depends on CONFIG_DEBUG
256 help
257 Using an additional debugging library will make BusyBox become
258 considerable larger and will cause it to run more slowly. You
259 should always leave this option disabled for production use.
260
261 dmalloc support:
262 ----------------
263 This enables compiling with dmalloc ( http://dmalloc.com/ )
264 which is an excellent public domain mem leak and malloc problem
265 detector. To enable dmalloc, before running busybox you will
266 want to properly set your environment, for example:
267 export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
268 The 'debug=' value is generated using the following command
269 dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \
270 -p check-fence -p check-heap -p check-lists -p check-blank \
271 -p check-funcs -p realloc-copy -p allow-free-null
272
273 Electric-fence support:
274 -----------------------
275 This enables compiling with Electric-fence support. Electric
276 fence is another very useful malloc debugging library which uses
277 your computer's virtual memory hardware to detect illegal memory
278 accesses. This support will make BusyBox be considerable larger
279 and run slower, so you should leave this option disabled unless
280 you are hunting a hard to find memory problem.
281
282
283config CONFIG_NO_DEBUG_LIB
284 bool "None"
285
286config CONFIG_DMALLOC
287 bool "Dmalloc"
288
289config CONFIG_EFENCE
290 bool "Electric-fence"
291
292endchoice
293
294
295endmenu
296