]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- don't try to find out the subsystem type if none is mounted
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 10 Feb 2011 12:46:43 +0000 (12:46 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 10 Feb 2011 12:46:43 +0000 (12:46 +0000)
svn-id: @12136

rc.d/init.d/cpusets

index 5cf2be0040f526d7167a71ed395f6d7ad6e67fa1..2dc4ffa3b4814f951df28f0eacf8653273983e44 100755 (executable)
@@ -31,11 +31,13 @@ elif grep -q "/dev/cpuset" /proc/mounts ; then
        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() {
This page took 0.100335 seconds and 4 git commands to generate.