diff --git a/initd/main.c b/initd/main.c index 78e8635..561bae6 100644 --- a/initd/main.c +++ b/initd/main.c @@ -41,7 +41,7 @@ static void handle_signal(void) } break; case SIGINT: - /* TODO: ctrl-alt-del */ + supervisor_set_target(TGT_REBOOT); break; } } diff --git a/lib/include/service.h b/lib/include/service.h index 03d768e..ceaf782 100644 --- a/lib/include/service.h +++ b/lib/include/service.h @@ -39,7 +39,6 @@ enum { TGT_BOOT = 0, /* run service when the system boots */ TGT_SHUTDOWN, /* run service when at system shut down */ TGT_REBOOT, /* run service when during system reboot */ - TGT_CAD, /* run service when CTRL+ALT+DEL is pressed */ TGT_MAX }; diff --git a/lib/util/svcmap.c b/lib/util/svcmap.c index 5df8ca9..41fb950 100644 --- a/lib/util/svcmap.c +++ b/lib/util/svcmap.c @@ -29,7 +29,6 @@ static const enum_map_t target_map[] = { { "boot", TGT_BOOT }, { "shutdown", TGT_SHUTDOWN }, { "reboot", TGT_REBOOT }, - { "ctrlaltdel", TGT_CAD }, { NULL, 0 }, };