diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/bootmisc.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index acdce994..5049c6e7 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -146,7 +146,9 @@ stop() # Write a halt record if we're shutting down if [ "${RC_RUNLEVEL}" = shutdown ]; then [ "${RC_UNAME}" = Linux ] && halt -w - [ "${RC_SYS}" = OPENVZ ] && printf "" >/reboot + if [ "${RC_SYS}" = OPENVZ ]; then + yesno ${RC_REBOOT} && printf "" >/reboot + fi fi return 0 |