SVN: rc-scripts/trunk/rc.d/init.d/cpusets

baggins baggins at pld-linux.org
Thu Feb 10 13:46:43 CET 2011


Author: baggins
Date: Thu Feb 10 13:46:43 2011
New Revision: 12136

Modified:
   rc-scripts/trunk/rc.d/init.d/cpusets
Log:
- don't try to find out the subsystem type if none is mounted


Modified: rc-scripts/trunk/rc.d/init.d/cpusets
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/cpusets	(original)
+++ rc-scripts/trunk/rc.d/init.d/cpusets	Thu Feb 10 13:46:43 2011
@@ -31,11 +31,13 @@
 	CGDIR="/dev/cpuset"
 fi
 
-if [ -e ${CGDIR}/cpuset.cpus ]; then
-	CSUBSYS="cpuset."
-elif [ ! -e ${CGDIR}/cpus ]; then
-	nls "ERROR: CGROUP/CPUSET mounted in a way I can't recognize" >&2
-	exit 1
+if [ -n "${CGDIR}" ]; then
+	if [ -e ${CGDIR}/cpuset.cpus ]; then
+		CSUBSYS="cpuset."
+	elif [ ! -e ${CGDIR}/cpus ]; then
+		nls "ERROR: CGROUP/CPUSET mounted in a way I can't recognize" >&2
+		exit 1
+	fi
 fi
 
 cpuset_mount() {


More information about the pld-cvs-commit mailing list