mirror of
https://github.com/pygos/init.git
synced 2024-11-22 03:09:46 +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:
parent
ec74e5bbee
commit
25afc0b3d0
3 changed files with 1 additions and 3 deletions
|
@ -41,7 +41,7 @@ static void handle_signal(void)
|
|||
}
|
||||
break;
|
||||
case SIGINT:
|
||||
/* TODO: ctrl-alt-del */
|
||||
supervisor_set_target(TGT_REBOOT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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 },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue