]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- change reboot/halt message for vserver (request by glen)
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 9 Dec 2005 15:26:12 +0000 (15:26 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 9 Dec 2005 15:26:12 +0000 (15:26 +0000)
svn-id: @6627

rc.d/rc.shutdown

index fff14c34fdc0c38c0f9b492b67f50fc8a7b35680..c450ce3667964aa9e805b2cab9516e219e624273 100755 (executable)
@@ -119,8 +119,14 @@ if ! is_yes "$VSERVER"; then
        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
@@ -129,7 +135,7 @@ if [ "$runlevel" = "0" ] ; 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
This page took 0.04045 seconds and 4 git commands to generate.