summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorErik Andersen2000-02-09 04:40:25 +0000
committerErik Andersen2000-02-09 04:40:25 +0000
commitd7ce5e780282148f86941ebb6babc7ae4b50b07e (patch)
treefc6b1d4f3de4cd732d0e4101a367f509f78218a5 /scripts
parente132f4b09e5c9aedaef97f65279e8702633fd425 (diff)
downloadbusybox-d7ce5e780282148f86941ebb6babc7ae4b50b07e.zip
busybox-d7ce5e780282148f86941ebb6babc7ae4b50b07e.tar.gz
Update the sample inittab to add the "ctrlaltdel" action.
Note a bug in busybox init that I need to fix. -Erik
Diffstat (limited to 'scripts')
-rw-r--r--scripts/inittab8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/inittab b/scripts/inittab
index dc8e921..bb547b7 100644
--- a/scripts/inittab
+++ b/scripts/inittab
@@ -23,7 +23,8 @@
#
# <runlevels>: The runlevels field is completely ignored.
#
-# <action>: Valid actions include: sysinit, respawn, askfirst, wait, and once.
+# <action>: Valid actions include: sysinit, respawn, askfirst, wait, once,
+# and ctrlaltdel.
#
# Note: askfirst acts just like respawn, but before running the specified
# process it displays the line "Please press Enter to activate this
@@ -70,6 +71,7 @@ tty5::respawn:/sbin/getty 38400 tty5
# Example how to put a getty on a modem line.
#ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2
-# Not currently supported, but may be sometime in the future...
-#::ctrlaltdel:/sbin/reboot
+# Stuff to do before rebooting
+::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1
+::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1