From: Daniel Hokka Zakrisson Date: Sun, 10 Dec 2006 17:45:28 +0000 (+0000) Subject: Improve the vshelper warning (common sign of multiple installs). X-Git-Tag: release-0.30.214~179 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ff772174901fd259e5b96b4e13d0f18acb37c78;p=util-vserver.git Improve the vshelper warning (common sign of multiple installs). git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2426 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/functions b/scripts/functions index d15cd41..f0ddff2 100644 --- a/scripts/functions +++ b/scripts/functions @@ -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