1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-12-22 07:10:49 +01:00

Remove ctrl+alt+del target, simply initiate reboot target

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-08-24 16:53:15 +02:00
parent ec74e5bbee
commit 25afc0b3d0
3 changed files with 1 additions and 3 deletions

View file

@ -41,7 +41,7 @@ static void handle_signal(void)
}
break;
case SIGINT:
/* TODO: ctrl-alt-del */
supervisor_set_target(TGT_REBOOT);
break;
}
}

View file

@ -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
};

View file

@ -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 },
};