From: Michel Stam Date: Thu, 2 Oct 2014 11:56:23 +0000 (+0000) Subject: Fix 'reboot' message when the system is powering down X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=commitdiff_plain;h=542c5374259fa5a4c4d009efd6b23b46d51cba15 Fix 'reboot' message when the system is powering down While executing a system halt (via the powerbutton or otherwise), the system displays rebooting, whereas it should display that it is going to turn off. Signed-off-by: Michel Stam --- 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);