From 542c5374259fa5a4c4d009efd6b23b46d51cba15 Mon Sep 17 00:00:00 2001 From: Michel Stam Date: Thu, 2 Oct 2014 11:56:23 +0000 Subject: [PATCH] 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 --- state.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.11.0