Only create the reboot file if rebooting.
This commit is contained in:
parent
3d7b56f2e2
commit
522ab21fbf
@ -146,7 +146,9 @@ stop()
|
|||||||
# Write a halt record if we're shutting down
|
# Write a halt record if we're shutting down
|
||||||
if [ "${RC_RUNLEVEL}" = shutdown ]; then
|
if [ "${RC_RUNLEVEL}" = shutdown ]; then
|
||||||
[ "${RC_UNAME}" = Linux ] && halt -w
|
[ "${RC_UNAME}" = Linux ] && halt -w
|
||||||
[ "${RC_SYS}" = OPENVZ ] && printf "" >/reboot
|
if [ "${RC_SYS}" = OPENVZ ]; then
|
||||||
|
yesno ${RC_REBOOT} && printf "" >/reboot
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user