fi
fi
+if ! is_yes "$VSERVER"; then
+ _rebootwhat="system"
+else
+ _rebootwhat="vserver"
+fi
+
if [ "$runlevel" = "0" ] ; then
- show "The system is halted"; ok
+ show "The $_rebootwhat is halted"; ok
[ -f /fastboot ] && (show "On the next boot fsck will be skipped."; ok)
if [ -x /sbin/poweroff-ups -a -f /etc/killpower -a -f /etc/sysconfig/ups ] ; then
fi
[ "$previous" != "unknown" ] && eval halt -d -p
else
- show "Please stand by while rebooting the system"; ok
+ show "Please stand by while rebooting the $_rebootwhat"; ok
[ -f /fastboot ] && (show "On the next boot fsck will be skipped."; ok)
[ -x /sbin/kexec ] && /sbin/kexec -e
[ "$previous" != "unknown" ] && eval reboot -d