add a build-time option to disable init related code Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Fix ctrl+alt+del support The previous patch did not catch SIGINT, which is used by the kernel to indicate to the init process that the system should reboot. Signed-off-by: Michel Stam <m.stam@fugro.nl>
make procd handle ctrl+alt+del Signed-off-by: John Crispin <blogic@openwrt.org>
debloat and reorganize code split app into procd and init binaries remove log support, this is an external service now Signed-off-by: John Crispin <blogic@openwrt.org>
add 2 second sleep before rebooting stderr is lost without this whena crash happens Signed-off-by: John Crispin <blogic@openwrt.org>
get rid of sleep() calls Signed-off-by: John Crispin <blogic@openwrt.org>
ignore sigpipe Signed-off-by: John Crispin <blogic@openwrt.org>
make reboot work without -f in failsafe Singed-off-by: John Crispin <blogic@openwrt.org>
add signal handler