Note a bug in busybox init that I need to fix.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@359
69ca8d6d-28ef-0310-b511-
8ec308f3f277
separate package (named perhaps tiny-netkit?). This currently includes
hostid, hostname, mnc, and ping.
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.
+
+
#
# <runlevels>: The runlevels field is completely ignored.
#
#
# <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
#
# Note: askfirst acts just like respawn, but before running the specified
# process it displays the line "Please press Enter to activate this
# Example how to put a getty on a modem line.
#ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2
# 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
#
# <runlevels>: The runlevels field is completely ignored.
#
#
# <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
#
# Note: askfirst acts just like respawn, but before running the specified
# process it displays the line "Please press Enter to activate this
# Example how to put a getty on a modem line.
#ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2
# 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