rc-scripts/branches/vserver/rc.d/rc.shutdown

baggins cvs at pld-linux.org
Tue Oct 18 16:38:54 CEST 2005


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



More information about the pld-cvs-commit mailing list