projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix 'reboot' message when the system is powering down
[project/procd.git]
/
state.c
diff --git
a/state.c
b/state.c
index
c3d2303
..
c5d90b6
100644
(file)
--- 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);