X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gentoo%2Fvprocunhide;fp=gentoo%2Fvprocunhide;h=d7199cab989211d12cf99c1fcd976409b2e49de9;hb=5a436c3339d4caf3af1175ed41fcaab75206a59c;hp=0000000000000000000000000000000000000000;hpb=f15ecabbb38a6e332eaf97194534e4af07e7b646;p=util-vserver.git diff --git a/gentoo/vprocunhide b/gentoo/vprocunhide new file mode 100644 index 0000000..d7199ca --- /dev/null +++ b/gentoo/vprocunhide @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +start() { + : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} + if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then + eerror "Cannot find util-vserver installation" + eerror "(the file '$UTIL_VSERVER_VARS' would be expected)" + return 1 + fi + + source ${UTIL_VSERVER_VARS} + + ebegin "Fixing /proc entries visibility" + ${_VPROCUNHIDE} + eend $? +} + +# vim:ts=4:filetype=gentoo-init-d