Update the sample inittab to add the "ctrlaltdel" action.
authorErik Andersen <andersen@codepoet.org>
Wed, 9 Feb 2000 04:40:25 +0000 (04:40 -0000)
committerErik Andersen <andersen@codepoet.org>
Wed, 9 Feb 2000 04:40:25 +0000 (04:40 -0000)
Note a bug in busybox init that I need to fix.
 -Erik

TODO
examples/inittab
scripts/inittab

diff --git a/TODO b/TODO
index 51a0d147aa685a91deaf4ba1dc65a0dddb5dbf9d..1c3b460e79b5f6bb85b949a8d1d4872d7c236b03 100644 (file)
--- a/TODO
+++ b/TODO
@@ -10,6 +10,10 @@ around to it some time. If you have any good ideas, please let me know.
     separate package (named perhaps tiny-netkit?).  This currently includes 
     hostid, hostname, mnc, and ping.
 
+* init's waitfor() calls wait() which can catch and ignore the wrong pid 
+    exiting.  That other process is then not restarted.
+
+
 
  -Erik
 
index dc8e921144b73335cbfd23e0722e960fab6b9277..bb547b740f0f6bda6360d5e1965531c0cc330a2d 100644 (file)
@@ -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
 
index dc8e921144b73335cbfd23e0722e960fab6b9277..bb547b740f0f6bda6360d5e1965531c0cc330a2d 100644 (file)
@@ -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