aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index d29328c36..de438be20 100644
--- a/init/init.c
+++ b/init/init.c
@@ -1135,7 +1135,9 @@ int init_main(int argc UNUSED_PARAM, char **argv)
struct sigaction sa;
bb_signals(0
+#ifdef SIGPWR
+ (1 << SIGPWR) /* halt */
+#endif
+ (1 << SIGUSR1) /* halt */
+ (1 << SIGTERM) /* reboot */
+ (1 << SIGUSR2) /* poweroff */