From: Denys Vlasenko Date: Sat, 2 Jul 2011 23:46:02 +0000 (+0200) Subject: halt/reboot: better message if /sbin/telinit is not found X-Git-Tag: 1_19_0~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=104e01409de48057f34fa8abe3fcae11820a651c;p=oweals%2Fbusybox.git halt/reboot: better message if /sbin/telinit is not found Signed-off-by: Denys Vlasenko --- diff --git a/init/halt.c b/init/halt.c index 433326dd4..1aac0faf9 100644 --- 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 {