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.
This commit is contained in:
Eric Andersen
2001-04-03 18:01:51 +00:00
parent 0f0c0b41ce
commit c97ec34370
9 changed files with 103 additions and 46 deletions

View File

@ -28,9 +28,9 @@ extern int reboot_main(int argc, char **argv)
{
#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
}