Author: baggins
Date: Tue Oct 18 16:38:50 2005
New Revision: 6458

Modified:
   rc-scripts/branches/vserver/rc.d/rc.shutdown
Log:
- halt and reboot ability added


Modified: rc-scripts/branches/vserver/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/branches/vserver/rc.d/rc.shutdown        (original)
+++ rc-scripts/branches/vserver/rc.d/rc.shutdown        Tue Oct 18 16:38:50 2005
@@ -35,5 +35,13 @@
 
 show "The system is halted"; ok
 
+if [ "$runlevel" = "0" ] ; then
+       show "The system is halted"; ok
+       eval halt -d -p
+else
+       show "Please stand by while rebooting the system"; ok
+       eval reboot -d
+fi
+
 # This must be last line !
 # vi:syntax=sh:ts=8:sw=4
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to