3 # Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; version 2 of the License.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
20 test -e "$UTIL_VSERVER_VARS" || {
21 echo $"Can not find util-vserver installation; aborting...">&2
24 . "$UTIL_VSERVER_VARS"
34 1 ... some files where changes but there occured errors on other ones
35 2 ... operation failed on every file
37 Report bugs to <$PACKAGE_BUGREPORT>."
41 function showVersion()
44 $"vprocunhide $PACKAGE_VERSION -- unhides /proc entries
45 This program is part of $PACKAGE_STRING
47 Copyright (C) 2004 Enrico Scholz
48 This program is free software; you may redistribute it under the terms of
49 the GNU General Public License. This program has absolutely no warranty."
57 --version) showVersion;;
62 "$CONFDIR"/.defaults/apps/vprocunhide/files \
63 "$PKGLIBDEFAULTDIR"/vprocunhide-files
67 while read filename; do
75 test -e "$1" || continue
77 $_SETATTR -x $param --!hide "$@" && passed=1 || ok=
80 test "$ok" && exit 0 || \
81 test "$passed" && exit 1 || \