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 <m.stam@fugro.nl>
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);