cleanups
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 6 Apr 2004 08:43:40 +0000 (08:43 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 6 Apr 2004 08:43:40 +0000 (08:43 +0000)
vshelper.doInit(): added another sanity check

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1424 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index d3a2c40..8ac1cfc 100644 (file)
@@ -561,9 +561,9 @@ function vshelper.doSanityCheck
     test -d "$VSHELPERSTATEDIR" || {
        warnings=( "${warnings[@]}"
                   $"\
-The vshelper state-directory '$VSHELPERSTATEDIR' does not exist;
-  since it is created by 'make install', this indicates a serious
-  problem with your util-vserver installation" )
+The vshelper state-directory '$VSHELPERSTATEDIR' does not exist; since
+it is created by 'make install', this indicates a serious problem with
+your util-vserver installation" )
        solution_disable=1
     }
 
@@ -665,8 +665,8 @@ function vshelper.doInit
 {
     vshelper.isEnabled || return 0
     
-    local xid=$($_VSERVER_INFO "$1" CONTEXT false) || {
-       warning $"vshelper.init: can not determine xid of vserver '$vserver'"
+    local xid=$($_VSERVER_INFO "$1" CONTEXT false) && test "$xid" || {
+       warning $"vshelper.init: can not determine xid of vserver '$vserver'; returned value was '$xid'"
        return 1
     }