summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-24 16:53:15 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-08-24 21:17:31 +0200
commit25afc0b3d0abb061829af926a38b31c977511531 (patch)
tree7955a9a710e9eb786e32fa052b69d59ff76cfd6b
parentec74e5bbee30381b1624ac2247e74fa29676c6e6 (diff)
Remove ctrl+alt+del target, simply initiate reboot target
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r--initd/main.c2
-rw-r--r--lib/include/service.h1
-rw-r--r--lib/util/svcmap.c1
3 files changed, 1 insertions, 3 deletions
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 },
};