aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-03 18:01:51 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-03 18:01:51 +0000
commit0427b6742d1907d9af79fd93ed021717e71e433b (patch)
tree113cfd14600fe4ccb65e392eeb06e368df13f1ef /docs
parent525f521dd6a3796012a4a9b476d056a2c4da2d87 (diff)
downloadbusybox-w32-0427b6742d1907d9af79fd93ed021717e71e433b.tar.gz
busybox-w32-0427b6742d1907d9af79fd93ed021717e71e433b.tar.bz2
busybox-w32-0427b6742d1907d9af79fd93ed021717e71e433b.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. git-svn-id: svn://busybox.net/trunk/busybox@2232 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rw-r--r--docs/busybox.pod25
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
910if it detects that /dev/console is _not_ a serial console, it will also run: 913if 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
914If you choose to use an /etc/inittab file, the inittab entry format is as follows: 919If 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 $