aboutsummaryrefslogtreecommitdiff
path: root/include/usage.src.h
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/usage.src.h
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/usage.src.h')
-rw-r--r--include/usage.src.h169
1 files changed, 0 insertions, 169 deletions
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" \