getDistribution(): added detection for slackware and gentoo
[util-vserver.git] / util-vserver / scripts / vprocunhide
index 2811a82..04b6d0c 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# $Id$
 #
 # Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
 #  
@@ -18,7 +19,7 @@
 
 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
 test -e "$UTIL_VSERVER_VARS" || {
-    echo $"Can not find util-vserver installation; aborting...">&2
+    echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
     exit 1
 }
 . "$UTIL_VSERVER_VARS"
@@ -32,7 +33,7 @@ function showHelp()
 Return values:
     0  ...  no errors
     1  ...  configuration error
-    2  ...  some files where changes but there occured errors on other ones
+    2  ...  some files were changed but errors occured on other ones
     3  ...  operation failed on every file
 
 Report bugs to <$PACKAGE_BUGREPORT>."
@@ -71,10 +72,10 @@ while read filename; do
     case "$filename" in
        (\#*)   continue;;
        (-*)    params=( --admin         --hide ); filename=${filename#-};;
-       (~*)    params=( --admin --watch --hide ); filename=${filename#-};;
-       (:*)    params=(         --watch --hide ); filename=${filename#-};;
-       (!*)    params=(                 --hide ); filename=${filename#-};;
-       (+*)    params=(                --!hide ); filename=${filename#-};;
+       (~*)    params=( --admin --watch --hide ); filename=${filename#~};;
+       (:*)    params=(         --watch --hide ); filename=${filename#:};;
+       (!*)    params=(                 --hide ); filename=${filename#!};;
+       (+*)    params=(                --!hide ); filename=${filename#+};;
        (*)     params=(                --!hide );;
     esac