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 | |
| parent | 0f0c0b41ced8c30d382a0490719c79371260b9d1 (diff) | |
| download | busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.gz busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.tar.bz2 busybox-w32-c97ec34370f66771713809ab7da19b7fe923cffe.zip | |
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')
| -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: | |||
| 906 | 906 | ||
| 907 | ::sysinit:/etc/init.d/rcS | 907 | ::sysinit:/etc/init.d/rcS |
| 908 | ::askfirst:/bin/sh | 908 | ::askfirst:/bin/sh |
| 909 | ::ctrlaltdel:/sbin/reboot | ||
| 910 | ::shutdown:/sbin/swapoff -a | ||
| 911 | ::shutdown:/bin/umount -a -r | ||
| 909 | 912 | ||
| 910 | if it detects that /dev/console is _not_ a serial console, it will also run: | 913 | if it detects that /dev/console is _not_ a serial console, it will also run: |
| 911 | 914 | ||
| 912 | tty2::askfirst:/bin/sh | 915 | tty2::askfirst:/bin/sh |
| 916 | tty3::askfirst:/bin/sh | ||
| 917 | tty4::askfirst:/bin/sh | ||
| 913 | 918 | ||
| 914 | If you choose to use an /etc/inittab file, the inittab entry format is as follows: | 919 | If you choose to use an /etc/inittab file, the inittab entry format is as follows: |
| 915 | 920 | ||
| @@ -935,7 +940,7 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
| 935 | <action>: | 940 | <action>: |
| 936 | 941 | ||
| 937 | Valid actions include: sysinit, respawn, askfirst, wait, | 942 | Valid actions include: sysinit, respawn, askfirst, wait, |
| 938 | once, and ctrlaltdel. | 943 | once, ctrlaltdel, and shutdown. |
| 939 | 944 | ||
| 940 | The available actions can be classified into two groups: actions | 945 | The available actions can be classified into two groups: actions |
| 941 | that are run only once, and actions that are re-run when the specified | 946 | 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 | |||
| 949 | 'wait' actions, like 'sysinit' actions, cause init to wait until | 954 | 'wait' actions, like 'sysinit' actions, cause init to wait until |
| 950 | the specified task completes. 'once' actions are asyncronous, | 955 | the specified task completes. 'once' actions are asyncronous, |
| 951 | therefore, init does not wait for them to complete. 'ctrlaltdel' | 956 | therefore, init does not wait for them to complete. 'ctrlaltdel' |
| 952 | actions are run immediately before init causes the system to reboot | 957 | actions are run when the system detects that someone on the system |
| 953 | (unmounting filesystems with a 'ctrlaltdel' action is a very good | 958 | console has pressed the CTRL-ALT-DEL key combination. Typically one |
| 954 | idea). | 959 | wants to run 'reboot' at this point to cause the system to reboot. |
| 960 | Finally the 'shutdown' action specifies the actions to taken when | ||
| 961 | init is told to reboot. Unmounting filesystems and disabling swap | ||
| 962 | is a very good here. | ||
| 955 | 963 | ||
| 956 | Run repeatedly actions: | 964 | Run repeatedly actions: |
| 957 | 965 | ||
| @@ -984,10 +992,9 @@ Example /etc/inittab file: | |||
| 984 | tty4::respawn:/sbin/getty 38400 tty5 | 992 | tty4::respawn:/sbin/getty 38400 tty5 |
| 985 | tty5::respawn:/sbin/getty 38400 tty6 | 993 | tty5::respawn:/sbin/getty 38400 tty6 |
| 986 | 994 | ||
| 987 | 995 | ::ctrlaltdel:/sbin/reboot | |
| 988 | 996 | ::shutdown:/bin/umount -a -r | |
| 989 | ::ctrlaltdel:/bin/umount -a -r | 997 | ::shutdown:/sbin/swapoff -a |
| 990 | ::ctrlaltdel:/sbin/swapoff -a | ||
| 991 | 998 | ||
| 992 | 999 | ||
| 993 | ------------------------------- | 1000 | ------------------------------- |
| @@ -2476,4 +2483,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
| 2476 | 2483 | ||
| 2477 | =cut | 2484 | =cut |
| 2478 | 2485 | ||
| 2479 | # $Id: busybox.pod,v 1.92 2001/03/15 21:20:25 markw Exp $ | 2486 | # $Id: busybox.pod,v 1.93 2001/04/03 18:01:51 andersen Exp $ |
