diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-03 01:46:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-03 01:46:02 +0200 |
commit | 104e01409de48057f34fa8abe3fcae11820a651c (patch) | |
tree | de6d47723f8e9f528c2023e357104d1d17551c44 /init | |
parent | 75214cfe00c72c51c67c9ac2541f06b0540136f1 (diff) | |
download | busybox-w32-104e01409de48057f34fa8abe3fcae11820a651c.tar.gz busybox-w32-104e01409de48057f34fa8abe3fcae11820a651c.tar.bz2 busybox-w32-104e01409de48057f34fa8abe3fcae11820a651c.zip |
halt/reboot: better message if /sbin/telinit is not found
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/halt.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
154 | /* runlevels: | 154 | /* runlevels: |
155 | * 0 == shutdown | 155 | * 0 == shutdown |
156 | * 6 == reboot */ | 156 | * 6 == reboot */ |
157 | rc = execlp(CONFIG_TELINIT_PATH, | 157 | execlp(CONFIG_TELINIT_PATH, |
158 | CONFIG_TELINIT_PATH, | 158 | CONFIG_TELINIT_PATH, |
159 | which == 2 ? "6" : "0", | 159 | which == 2 ? "6" : "0", |
160 | (char *)NULL | 160 | (char *)NULL |
161 | ); | 161 | ); |
162 | perror_msg_and_die("can't execute '%s'", | ||
163 | CONFIG_TELINIT_PATH); | ||
162 | } | 164 | } |
163 | } | 165 | } |
164 | } else { | 166 | } else { |