summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorEric Andersen2001-04-03 18:01:51 +0000
committerEric Andersen2001-04-03 18:01:51 +0000
commitc97ec34370f66771713809ab7da19b7fe923cffe (patch)
tree113cfd14600fe4ccb65e392eeb06e368df13f1ef /applets
parent0f0c0b41ced8c30d382a0490719c79371260b9d1 (diff)
downloadbusybox-c97ec34370f66771713809ab7da19b7fe923cffe.zip
busybox-c97ec34370f66771713809ab7da19b7fe923cffe.tar.gz
A patch from Matt Kraai that adds a new 'shutdown' action to busybox init. Now
you can specify an arbitrary behavior for 'ctrlaltdel' without that behavior needing to be a reboot.
Diffstat (limited to 'applets')
-rw-r--r--applets/usage.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/applets/usage.h b/applets/usage.h
index 1ee2ab3..aa7f0af 100644
--- a/applets/usage.h
+++ b/applets/usage.h
@@ -663,10 +663,15 @@
"\n" \
" ::sysinit:/etc/init.d/rcS\n" \
" ::askfirst:/bin/sh\n" \
+" ::ctrlaltdel:/sbin/reboot\n" \
+" ::shutdown:/sbin/swapoff -a\n" \
+" ::shutdown:/bin/umount -a -r\n" \
"\n" \
"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \
"\n" \
" tty2::askfirst:/bin/sh\n" \
+" tty3::askfirst:/bin/sh\n" \
+" tty4::askfirst:/bin/sh\n" \
"\n" \
"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \
"\n" \
@@ -692,7 +697,7 @@
" <action>: \n" \
"\n" \
" Valid actions include: sysinit, respawn, askfirst, wait, \n" \
-" once, and ctrlaltdel.\n" \
+" once, ctrlaltdel, and shutdown.\n" \
"\n" \
" The available actions can be classified into two groups: actions\n" \
" that are run only once, and actions that are re-run when the specified\n" \
@@ -706,9 +711,12 @@
" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \
" the specified task completes. 'once' actions are asyncronous,\n" \
" therefore, init does not wait for them to complete. 'ctrlaltdel'\n" \
-" actions are run immediately before init causes the system to reboot\n" \
-" (unmounting filesystems with a 'ctrlaltdel' action is a very good\n" \
-" idea).\n" \
+" actions are run when the system detects that someone on the system\n" \
+" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \
+" wants to run 'reboot' at this point to cause the system to reboot.\n" \
+" Finally the 'shutdown' action specifies the actions to taken when\n" \
+" init is told to reboot. Unmounting filesystems and disabling swap\n" \
+" is a very good here\n" \
"\n" \
" Run repeatedly actions:\n" \
"\n" \
@@ -759,8 +767,9 @@
" #::respawn:/sbin/getty 57600 ttyS2\n" \
" \n" \
" # Stuff to do before rebooting\n" \
-" ::ctrlaltdel:/bin/umount -a -r\n" \
-" ::ctrlaltdel:/sbin/swapoff -a\n"
+" ::ctrlaltdel:/sbin/reboot\n" \
+" ::shutdown:/bin/umount -a -r\n" \
+" ::shutdown:/sbin/swapoff -a\n"
#define insmod_trivial_usage \
"[OPTION]... MODULE [symbol=value]..."