projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75214cf
)
halt/reboot: better message if /sbin/telinit is not found
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 2 Jul 2011 23:46:02 +0000
(
01:46
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 2 Jul 2011 23:46:02 +0000
(
01:46
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/halt.c
patch
|
blob
|
history
diff --git
a/init/halt.c
b/init/halt.c
index 433326dd4d6d5044c1d12348024ef14edb263462..1aac0faf9afc20862135576671680f333c2fcd5e 100644
(file)
--- a/
init/halt.c
+++ b/
init/halt.c
@@
-154,11
+154,13
@@
int halt_main(int argc UNUSED_PARAM, char **argv)
/* runlevels:
* 0 == shutdown
* 6 == reboot */
-
rc =
execlp(CONFIG_TELINIT_PATH,
+ execlp(CONFIG_TELINIT_PATH,
CONFIG_TELINIT_PATH,
which == 2 ? "6" : "0",
(char *)NULL
);
+ perror_msg_and_die("can't execute '%s'",
+ CONFIG_TELINIT_PATH);
}
}
} else {