From 8ff772174901fd259e5b96b4e13d0f18acb37c78 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sun, 10 Dec 2006 17:45:28 +0000 Subject: [PATCH] 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 --- scripts/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.8.1.5