Improve the vshelper warning (common sign of multiple installs).
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 10 Dec 2006 17:45:28 +0000 (17:45 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 10 Dec 2006 17:45:28 +0000 (17:45 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2426 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/functions

index d15cd41..f0ddff2 100644 (file)
@@ -844,9 +844,11 @@ function vshelper.doSanityCheck
        vshelper=$(cat "$proc_file")
 
        $_CMP -s "$vshelper" "$_VSHELPER" || {
+           local readable=""
+           test -r "$vshelper" && readable=1
            warnings=( "${warnings[@]}"
                       $"The configured vshelper '$vshelper' does not match the 'vshelper'
-  script of the util-vserver package"
+  script of the util-vserver package.${readable:+ Maybe you have two versions installed?}"
                     )
            solution_disable=1
            solution_sysctl=1