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:
parent
7689106aa1
commit
1801561c2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user