rc-scripts/trunk/rc.d/rc.shutdown

baggins cvs at pld-linux.org
Fri Dec 9 16:26:21 CET 2005


Author: baggins
Date: Fri Dec  9 16:26:12 2005
New Revision: 6627

Modified:
   rc-scripts/trunk/rc.d/rc.shutdown
Log:
- change reboot/halt message for vserver (request by glen)


Modified: rc-scripts/trunk/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/trunk/rc.d/rc.shutdown	(original)
+++ rc-scripts/trunk/rc.d/rc.shutdown	Fri Dec  9 16:26:12 2005
@@ -119,8 +119,14 @@
 	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 @@
 	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



More information about the pld-cvs-commit mailing list