mirror of
https://github.com/sheumann/hush.git
synced 2025-02-03 08:32:48 +00:00
halt/reboot: better message if /sbin/telinit is not found
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
75214cfe00
commit
104e01409d
@ -154,11 +154,13 @@ int halt_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* runlevels:
|
/* runlevels:
|
||||||
* 0 == shutdown
|
* 0 == shutdown
|
||||||
* 6 == reboot */
|
* 6 == reboot */
|
||||||
rc = execlp(CONFIG_TELINIT_PATH,
|
execlp(CONFIG_TELINIT_PATH,
|
||||||
CONFIG_TELINIT_PATH,
|
CONFIG_TELINIT_PATH,
|
||||||
which == 2 ? "6" : "0",
|
which == 2 ? "6" : "0",
|
||||||
(char *)NULL
|
(char *)NULL
|
||||||
);
|
);
|
||||||
|
perror_msg_and_die("can't execute '%s'",
|
||||||
|
CONFIG_TELINIT_PATH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user