aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-12 13:47:15 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-12 13:47:15 +0200
commitb1db09be5a19f814ed5dc7e0ab095c3355926da6 (patch)
tree382ba65d4a9194cb1b694e4240a0cf005bf567f1 /include
parentd4d289acf5eb59ebae414f9aae8a74de30dce36a (diff)
downloadbusybox-w32-b1db09be5a19f814ed5dc7e0ab095c3355926da6.tar.gz
busybox-w32-b1db09be5a19f814ed5dc7e0ab095c3355926da6.tar.bz2
busybox-w32-b1db09be5a19f814ed5dc7e0ab095c3355926da6.zip
init/*: move applet/kbuild/config/help bits into applet source files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.src.h7
-rw-r--r--include/usage.src.h169
2 files changed, 0 insertions, 176 deletions
diff --git a/include/applets.src.h b/include/applets.src.h
index 6a14a6588..545d3c5c2 100644
--- a/include/applets.src.h
+++ b/include/applets.src.h
@@ -72,7 +72,6 @@ IF_BASENAME(APPLET_NOFORK(basename, basename, _BB_DIR_USR_BIN, _BB_SUID_DROP, ba
72IF_BBCONFIG(APPLET(bbconfig, _BB_DIR_BIN, _BB_SUID_DROP)) 72IF_BBCONFIG(APPLET(bbconfig, _BB_DIR_BIN, _BB_SUID_DROP))
73IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 73IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP))
74IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) 74IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP))
75IF_BOOTCHARTD(APPLET(bootchartd, _BB_DIR_SBIN, _BB_SUID_DROP))
76IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 75IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
77IF_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 76IF_BZIP2(APPLET(bzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP))
78IF_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 77IF_CAL(APPLET(cal, _BB_DIR_USR_BIN, _BB_SUID_DROP))
@@ -165,7 +164,6 @@ IF_GETSEBOOL(APPLET(getsebool, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
165IF_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_DROP)) 164IF_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_DROP))
166IF_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_DROP)) 165IF_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_DROP))
167IF_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_DROP)) 166IF_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_DROP))
168IF_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_DROP))
169IF_HD(APPLET_NOEXEC(hd, hexdump, _BB_DIR_USR_BIN, _BB_SUID_DROP, hd)) 167IF_HD(APPLET_NOEXEC(hd, hexdump, _BB_DIR_USR_BIN, _BB_SUID_DROP, hd))
170IF_HDPARM(APPLET(hdparm, _BB_DIR_SBIN, _BB_SUID_DROP)) 168IF_HDPARM(APPLET(hdparm, _BB_DIR_SBIN, _BB_SUID_DROP))
171IF_HEAD(APPLET_NOEXEC(head, head, _BB_DIR_USR_BIN, _BB_SUID_DROP, head)) 169IF_HEAD(APPLET_NOEXEC(head, head, _BB_DIR_USR_BIN, _BB_SUID_DROP, head))
@@ -181,7 +179,6 @@ IF_IFENSLAVE(APPLET(ifenslave, _BB_DIR_SBIN, _BB_SUID_DROP))
181IF_IFPLUGD(APPLET(ifplugd, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 179IF_IFPLUGD(APPLET(ifplugd, _BB_DIR_USR_BIN, _BB_SUID_DROP))
182IF_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN, _BB_SUID_DROP, ifup)) 180IF_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN, _BB_SUID_DROP, ifup))
183IF_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 181IF_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
184IF_INIT(APPLET(init, _BB_DIR_SBIN, _BB_SUID_DROP))
185IF_INOTIFYD(APPLET(inotifyd, _BB_DIR_SBIN, _BB_SUID_DROP)) 182IF_INOTIFYD(APPLET(inotifyd, _BB_DIR_SBIN, _BB_SUID_DROP))
186IF_INSMOD(APPLET(insmod, _BB_DIR_SBIN, _BB_SUID_DROP)) 183IF_INSMOD(APPLET(insmod, _BB_DIR_SBIN, _BB_SUID_DROP))
187IF_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe)) 184IF_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))
@@ -212,7 +209,6 @@ IF_LENGTH(APPLET_NOFORK(length, length, _BB_DIR_USR_BIN, _BB_SUID_DROP, length))
212IF_LESS(APPLET(less, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 209IF_LESS(APPLET(less, _BB_DIR_USR_BIN, _BB_SUID_DROP))
213IF_SETARCH(APPLET_ODDNAME(linux32, setarch, _BB_DIR_BIN, _BB_SUID_DROP, linux32)) 210IF_SETARCH(APPLET_ODDNAME(linux32, setarch, _BB_DIR_BIN, _BB_SUID_DROP, linux32))
214IF_SETARCH(APPLET_ODDNAME(linux64, setarch, _BB_DIR_BIN, _BB_SUID_DROP, linux64)) 211IF_SETARCH(APPLET_ODDNAME(linux64, setarch, _BB_DIR_BIN, _BB_SUID_DROP, linux64))
215IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, _BB_DIR_ROOT, _BB_SUID_DROP, linuxrc))
216IF_LN(APPLET_NOEXEC(ln, ln, _BB_DIR_BIN, _BB_SUID_DROP, ln)) 212IF_LN(APPLET_NOEXEC(ln, ln, _BB_DIR_BIN, _BB_SUID_DROP, ln))
217IF_LOAD_POLICY(APPLET(load_policy, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 213IF_LOAD_POLICY(APPLET(load_policy, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
218IF_LOADFONT(APPLET(loadfont, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 214IF_LOADFONT(APPLET(loadfont, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
@@ -241,7 +237,6 @@ IF_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUID_DROP))
241IF_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 237IF_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
242IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, md5sum)) 238IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, md5sum))
243IF_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_DROP)) 239IF_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_DROP))
244IF_MESG(APPLET(mesg, _BB_DIR_USR_BIN, _BB_SUID_DROP))
245IF_MICROCOM(APPLET(microcom, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 240IF_MICROCOM(APPLET(microcom, _BB_DIR_USR_BIN, _BB_SUID_DROP))
246IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, _BB_DIR_BIN, _BB_SUID_DROP, mkdir)) 241IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, _BB_DIR_BIN, _BB_SUID_DROP, mkdir))
247IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_vfat)) 242IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_vfat))
@@ -284,7 +279,6 @@ IF_PIPE_PROGRESS(APPLET(pipe_progress, _BB_DIR_BIN, _BB_SUID_DROP))
284IF_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_DROP)) 279IF_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_DROP))
285IF_PKILL(APPLET_ODDNAME(pkill, pgrep, _BB_DIR_USR_BIN, _BB_SUID_DROP, pkill)) 280IF_PKILL(APPLET_ODDNAME(pkill, pgrep, _BB_DIR_USR_BIN, _BB_SUID_DROP, pkill))
286IF_POPMAILDIR(APPLET(popmaildir, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 281IF_POPMAILDIR(APPLET(popmaildir, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
287IF_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_DROP, poweroff))
288IF_PRINTENV(APPLET_NOFORK(printenv, printenv, _BB_DIR_BIN, _BB_SUID_DROP, printenv)) 282IF_PRINTENV(APPLET_NOFORK(printenv, printenv, _BB_DIR_BIN, _BB_SUID_DROP, printenv))
289IF_PRINTF(APPLET_NOFORK(printf, printf, _BB_DIR_USR_BIN, _BB_SUID_DROP, printf)) 283IF_PRINTF(APPLET_NOFORK(printf, printf, _BB_DIR_USR_BIN, _BB_SUID_DROP, printf))
290IF_PS(APPLET(ps, _BB_DIR_BIN, _BB_SUID_DROP)) 284IF_PS(APPLET(ps, _BB_DIR_BIN, _BB_SUID_DROP))
@@ -297,7 +291,6 @@ IF_READAHEAD(APPLET(readahead, _BB_DIR_USR_BIN, _BB_SUID_DROP))
297IF_READLINK(APPLET(readlink, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 291IF_READLINK(APPLET(readlink, _BB_DIR_USR_BIN, _BB_SUID_DROP))
298IF_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 292IF_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
299IF_REALPATH(APPLET(realpath, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 293IF_REALPATH(APPLET(realpath, _BB_DIR_USR_BIN, _BB_SUID_DROP))
300IF_HALT(APPLET_ODDNAME(reboot, halt, _BB_DIR_SBIN, _BB_SUID_DROP, reboot))
301IF_REFORMIME(APPLET(reformime, _BB_DIR_BIN, _BB_SUID_DROP)) 294IF_REFORMIME(APPLET(reformime, _BB_DIR_BIN, _BB_SUID_DROP))
302IF_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 295IF_RENICE(APPLET(renice, _BB_DIR_USR_BIN, _BB_SUID_DROP))
303IF_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 296IF_RESET(APPLET(reset, _BB_DIR_USR_BIN, _BB_SUID_DROP))
diff --git a/include/usage.src.h b/include/usage.src.h
index 555250366..084427cc0 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -1515,36 +1515,6 @@ INSERT
1515 "$ ls -la /tmp/busybox*\n" \ 1515 "$ ls -la /tmp/busybox*\n" \
1516 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n" 1516 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
1517 1517
1518#define halt_trivial_usage \
1519 "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]")
1520#define halt_full_usage "\n\n" \
1521 "Halt the system\n" \
1522 "\nOptions:" \
1523 "\n -d SEC Delay interval" \
1524 "\n -n Do not sync" \
1525 "\n -f Force (don't go through init)" \
1526 IF_FEATURE_WTMP( \
1527 "\n -w Only write a wtmp record" \
1528 )
1529
1530#define poweroff_trivial_usage \
1531 "[-d DELAY] [-n] [-f]"
1532#define poweroff_full_usage "\n\n" \
1533 "Halt and shut off power\n" \
1534 "\nOptions:" \
1535 "\n -d SEC Delay interval" \
1536 "\n -n Do not sync" \
1537 "\n -f Force (don't go through init)" \
1538
1539#define reboot_trivial_usage \
1540 "[-d DELAY] [-n] [-f]"
1541#define reboot_full_usage "\n\n" \
1542 "Reboot the system\n" \
1543 "\nOptions:" \
1544 "\n -d SEC Delay interval" \
1545 "\n -n Do not sync" \
1546 "\n -f Force (don't go through init)" \
1547
1548#define hdparm_trivial_usage \ 1518#define hdparm_trivial_usage \
1549 "[OPTIONS] [DEVICE]" 1519 "[OPTIONS] [DEVICE]"
1550#define hdparm_full_usage "\n\n" \ 1520#define hdparm_full_usage "\n\n" \
@@ -1863,138 +1833,6 @@ INSERT
1863 "\n -R N Pause services after N connects/min" \ 1833 "\n -R N Pause services after N connects/min" \
1864 "\n (default: 0 - disabled)" \ 1834 "\n (default: 0 - disabled)" \
1865 1835
1866#define init_trivial_usage \
1867 ""
1868#define init_full_usage "\n\n" \
1869 "Init is the parent of all processes"
1870
1871#define init_notes_usage \
1872"This version of init is designed to be run only by the kernel.\n" \
1873"\n" \
1874"BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \
1875"the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \
1876"runlevels, use sysvinit.\n" \
1877"\n" \
1878"BusyBox init works just fine without an inittab. If no inittab is found,\n" \
1879"it has the following default behavior:\n" \
1880"\n" \
1881" ::sysinit:/etc/init.d/rcS\n" \
1882" ::askfirst:/bin/sh\n" \
1883" ::ctrlaltdel:/sbin/reboot\n" \
1884" ::shutdown:/sbin/swapoff -a\n" \
1885" ::shutdown:/bin/umount -a -r\n" \
1886" ::restart:/sbin/init\n" \
1887"\n" \
1888"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
1889"\n" \
1890" tty2::askfirst:/bin/sh\n" \
1891" tty3::askfirst:/bin/sh\n" \
1892" tty4::askfirst:/bin/sh\n" \
1893"\n" \
1894"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
1895"\n" \
1896" <id>:<runlevels>:<action>:<process>\n" \
1897"\n" \
1898" <id>:\n" \
1899"\n" \
1900" WARNING: This field has a non-traditional meaning for BusyBox init!\n" \
1901" The id field is used by BusyBox init to specify the controlling tty for\n" \
1902" the specified process to run on. The contents of this field are\n" \
1903" appended to \"/dev/\" and used as-is. There is no need for this field to\n" \
1904" be unique, although if it isn't you may have strange results. If this\n" \
1905" field is left blank, the controlling tty is set to the console. Also\n" \
1906" note that if BusyBox detects that a serial console is in use, then only\n" \
1907" entries whose controlling tty is either the serial console or /dev/null\n" \
1908" will be run. BusyBox init does nothing with utmp. We don't need no\n" \
1909" stinkin' utmp.\n" \
1910"\n" \
1911" <runlevels>:\n" \
1912"\n" \
1913" The runlevels field is completely ignored.\n" \
1914"\n" \
1915" <action>:\n" \
1916"\n" \
1917" Valid actions include: sysinit, respawn, askfirst, wait,\n" \
1918" once, restart, ctrlaltdel, and shutdown.\n" \
1919"\n" \
1920" The available actions can be classified into two groups: actions\n" \
1921" that are run only once, and actions that are re-run when the specified\n" \
1922" process exits.\n" \
1923"\n" \
1924" Run only-once actions:\n" \
1925"\n" \
1926" 'sysinit' is the first item run on boot. init waits until all\n" \
1927" sysinit actions are completed before continuing. Following the\n" \
1928" completion of all sysinit actions, all 'wait' actions are run.\n" \
1929" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
1930" the specified task completes. 'once' actions are asynchronous,\n" \
1931" therefore, init does not wait for them to complete. 'restart' is\n" \
1932" the action taken to restart the init process. By default this should\n" \
1933" simply run /sbin/init, but can be a script which runs pivot_root or it\n" \
1934" can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \
1935" actions are run when the system detects that someone on the system\n" \
1936" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
1937" wants to run 'reboot' at this point to cause the system to reboot.\n" \
1938" Finally the 'shutdown' action specifies the actions to taken when\n" \
1939" init is told to reboot. Unmounting filesystems and disabling swap\n" \
1940" is a very good here.\n" \
1941"\n" \
1942" Run repeatedly actions:\n" \
1943"\n" \
1944" 'respawn' actions are run after the 'once' actions. When a process\n" \
1945" started with a 'respawn' action exits, init automatically restarts\n" \
1946" it. Unlike sysvinit, BusyBox init does not stop processes from\n" \
1947" respawning out of control. The 'askfirst' actions acts just like\n" \
1948" respawn, except that before running the specified process it\n" \
1949" displays the line \"Please press Enter to activate this console.\"\n" \
1950" and then waits for the user to press enter before starting the\n" \
1951" specified process.\n" \
1952"\n" \
1953" Unrecognized actions (like initdefault) will cause init to emit an\n" \
1954" error message, and then go along with its business. All actions are\n" \
1955" run in the order they appear in /etc/inittab.\n" \
1956"\n" \
1957" <process>:\n" \
1958"\n" \
1959" Specifies the process to be executed and its command line.\n" \
1960"\n" \
1961"Example /etc/inittab file:\n" \
1962"\n" \
1963" # This is run first except when booting in single-user mode\n" \
1964" #\n" \
1965" ::sysinit:/etc/init.d/rcS\n" \
1966" \n" \
1967" # /bin/sh invocations on selected ttys\n" \
1968" #\n" \
1969" # Start an \"askfirst\" shell on the console (whatever that may be)\n" \
1970" ::askfirst:-/bin/sh\n" \
1971" # Start an \"askfirst\" shell on /dev/tty2-4\n" \
1972" tty2::askfirst:-/bin/sh\n" \
1973" tty3::askfirst:-/bin/sh\n" \
1974" tty4::askfirst:-/bin/sh\n" \
1975" \n" \
1976" # /sbin/getty invocations for selected ttys\n" \
1977" #\n" \
1978" tty4::respawn:/sbin/getty 38400 tty4\n" \
1979" tty5::respawn:/sbin/getty 38400 tty5\n" \
1980" \n" \
1981" \n" \
1982" # Example of how to put a getty on a serial line (for a terminal)\n" \
1983" #\n" \
1984" #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \
1985" #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \
1986" #\n" \
1987" # Example how to put a getty on a modem line\n" \
1988" #::respawn:/sbin/getty 57600 ttyS2\n" \
1989" \n" \
1990" # Stuff to do when restarting the init process\n" \
1991" ::restart:/sbin/init\n" \
1992" \n" \
1993" # Stuff to do before rebooting\n" \
1994" ::ctrlaltdel:/sbin/reboot\n" \
1995" ::shutdown:/bin/umount -a -r\n" \
1996" ::shutdown:/sbin/swapoff -a\n"
1997
1998#define inotifyd_trivial_usage \ 1836#define inotifyd_trivial_usage \
1999 "PROG FILE1[:MASK]..." 1837 "PROG FILE1[:MASK]..."
2000#define inotifyd_full_usage "\n\n" \ 1838#define inotifyd_full_usage "\n\n" \
@@ -2651,13 +2489,6 @@ INSERT
2651 "the last line match .* to override this.)\n\n" \ 2489 "the last line match .* to override this.)\n\n" \
2652 ) 2490 )
2653 2491
2654#define mesg_trivial_usage \
2655 "[y|n]"
2656#define mesg_full_usage "\n\n" \
2657 "Control write access to your terminal\n" \
2658 " y Allow write access to your terminal\n" \
2659 " n Disallow write access to your terminal"
2660
2661#define microcom_trivial_usage \ 2492#define microcom_trivial_usage \
2662 "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY" 2493 "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
2663#define microcom_full_usage "\n\n" \ 2494#define microcom_full_usage "\n\n" \