init.d/bootmisc: use openrc-shutdown instead of halt to write halt record

This fixes #139 and fixes #128.
and fixes #124.
This commit is contained in:
William Hubbs 2017-06-02 18:21:53 -05:00
parent 7689106aa1
commit 1801561c2d

View File

@ -241,7 +241,7 @@ stop()
{
# Write a halt record if we're shutting down
if [ "$RC_RUNLEVEL" = shutdown ]; then
[ "$RC_UNAME" = Linux ] && halt -w
[ "$RC_UNAME" = Linux ] && openrc-shutdown -w
if [ "$RC_SYS" = OPENVZ ]; then
yesno $RC_REBOOT && printf "" >/reboot
fi