diff options
Diffstat (limited to 'initd/main.c')
-rw-r--r-- | initd/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/initd/main.c b/initd/main.c index 08e314f..b50c09c 100644 --- a/initd/main.c +++ b/initd/main.c @@ -103,7 +103,13 @@ void target_completed(int target) if (ti_sock == -1) ti_sock = mksock(INITSOCK, SOCK_FLAG_ROOT_ONLY); break; - default: + case TGT_SHUTDOWN: + for (;;) + reboot(RB_POWER_OFF); + break; + case TGT_REBOOT: + for (;;) + reboot(RB_AUTOBOOT); break; } } |