rc-scripts/trunk/rc.d/init.d/template.init

glen cvs at pld-linux.org
Sat Jan 21 14:49:50 CET 2006


Author: glen
Date: Sat Jan 21 14:49:49 2006
New Revision: 6876

Modified:
   rc-scripts/trunk/rc.d/init.d/template.init
Log:
Allow some actions when network is down (by ankry @ 2003-07-03).


Modified: rc-scripts/trunk/rc.d/init.d/template.init
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/template.init	(original)
+++ rc-scripts/trunk/rc.d/init.d/template.init	Sat Jan 21 14:49:49 2006
@@ -26,7 +26,7 @@
 
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
-	if [ ! -f /var/lock/subsys/network ]; then
+	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
 		msg_network_down <service>
 		exit 1
 	fi


More information about the pld-cvs-commit mailing list