mirror of
https://github.com/pygos/init.git
synced 2024-11-22 11:19:45 +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;
|
break;
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
/* TODO: ctrl-alt-del */
|
supervisor_set_target(TGT_REBOOT);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@ enum {
|
||||||
TGT_BOOT = 0, /* run service when the system boots */
|
TGT_BOOT = 0, /* run service when the system boots */
|
||||||
TGT_SHUTDOWN, /* run service when at system shut down */
|
TGT_SHUTDOWN, /* run service when at system shut down */
|
||||||
TGT_REBOOT, /* run service when during system reboot */
|
TGT_REBOOT, /* run service when during system reboot */
|
||||||
TGT_CAD, /* run service when CTRL+ALT+DEL is pressed */
|
|
||||||
|
|
||||||
TGT_MAX
|
TGT_MAX
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,7 +29,6 @@ static const enum_map_t target_map[] = {
|
||||||
{ "boot", TGT_BOOT },
|
{ "boot", TGT_BOOT },
|
||||||
{ "shutdown", TGT_SHUTDOWN },
|
{ "shutdown", TGT_SHUTDOWN },
|
||||||
{ "reboot", TGT_REBOOT },
|
{ "reboot", TGT_REBOOT },
|
||||||
{ "ctrlaltdel", TGT_CAD },
|
|
||||||
{ NULL, 0 },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue