diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-03 18:01:51 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-03 18:01:51 +0000 |
commit | c97ec34370f66771713809ab7da19b7fe923cffe (patch) | |
tree | 113cfd14600fe4ccb65e392eeb06e368df13f1ef /docs/busybox.pod | |
parent | 0f0c0b41ced8c30d382a0490719c79371260b9d1 (diff) |
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 'docs/busybox.pod')
-rw-r--r-- | docs/busybox.pod | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/docs/busybox.pod b/docs/busybox.pod index 644abc359..42944489a 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod @@ -906,10 +906,15 @@ it has the following default behavior: ::sysinit:/etc/init.d/rcS ::askfirst:/bin/sh + ::ctrlaltdel:/sbin/reboot + ::shutdown:/sbin/swapoff -a + ::shutdown:/bin/umount -a -r if it detects that /dev/console is _not_ a serial console, it will also run: tty2::askfirst:/bin/sh + tty3::askfirst:/bin/sh + tty4::askfirst:/bin/sh If you choose to use an /etc/inittab file, the inittab entry format is as follows: @@ -935,7 +940,7 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow <action>: Valid actions include: sysinit, respawn, askfirst, wait, - once, and ctrlaltdel. + once, ctrlaltdel, and shutdown. The available actions can be classified into two groups: actions that are run only once, and actions that are re-run when the specified @@ -949,9 +954,12 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow 'wait' actions, like 'sysinit' actions, cause init to wait until the specified task completes. 'once' actions are asyncronous, therefore, init does not wait for them to complete. 'ctrlaltdel' - actions are run immediately before init causes the system to reboot - (unmounting filesystems with a 'ctrlaltdel' action is a very good - idea). + actions are run when the system detects that someone on the system + console has pressed the CTRL-ALT-DEL key combination. Typically one + wants to run 'reboot' at this point to cause the system to reboot. + Finally the 'shutdown' action specifies the actions to taken when + init is told to reboot. Unmounting filesystems and disabling swap + is a very good here. Run repeatedly actions: @@ -984,10 +992,9 @@ Example /etc/inittab file: tty4::respawn:/sbin/getty 38400 tty5 tty5::respawn:/sbin/getty 38400 tty6 - - - ::ctrlaltdel:/bin/umount -a -r - ::ctrlaltdel:/sbin/swapoff -a + ::ctrlaltdel:/sbin/reboot + ::shutdown:/bin/umount -a -r + ::shutdown:/sbin/swapoff -a ------------------------------- @@ -2476,4 +2483,4 @@ Enrique Zanardi <ezanardi@ull.es> =cut -# $Id: busybox.pod,v 1.92 2001/03/15 21:20:25 markw Exp $ +# $Id: busybox.pod,v 1.93 2001/04/03 18:01:51 andersen Exp $ |