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.
diff --git a/init/reboot.c b/init/reboot.c
index 3e5f238..74d2cf6 100644
--- a/init/reboot.c
+++ b/init/reboot.c
@@ -28,9 +28,9 @@
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- return(kill(*(find_pid_by_name("init")), SIGINT));
+ return(kill(*(find_pid_by_name("init")), SIGTERM));
#else
- return(kill(1, SIGINT));
+ return(kill(1, SIGTERM));
#endif
}