X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=state.c;h=c5d90b6718106d614b28fcf5ac788f68135c6e0e;hp=c3d2303329f87ae5204619ba150e07770209b538;hb=542c5374259fa5a4c4d009efd6b23b46d51cba15;hpb=2c8176385a4f62b536303912ba508b9dc7931fad diff --git a/state.c b/state.c index c3d2303..c5d90b6 100644 --- a/state.c +++ b/state.c @@ -85,7 +85,10 @@ static void state_enter(void) kill(-1, SIGKILL); sync(); sleep(1); - LOG("- reboot -\n"); + if (reboot_event == RB_POWER_OFF) + LOG("- power down -\n"); + else + LOG("- reboot -\n"); /* Allow time for last message to reach serial console, etc */ sleep(1);