X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gentoo%2Futil-vserver;h=94903cce775f65c48f6005b582ecf0eadc9e1f20;hb=ffc97bb00051a5426111ca65c7e6dca595c750eb;hp=3fae9f2cbc1e45b57a322a1ab8e15880cbf0767f;hpb=5a436c3339d4caf3af1175ed41fcaab75206a59c;p=util-vserver.git diff --git a/gentoo/util-vserver b/gentoo/util-vserver index 3fae9f2..94903cc 100644 --- a/gentoo/util-vserver +++ b/gentoo/util-vserver @@ -29,36 +29,32 @@ kill_contexts() { start() { : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} - if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then + 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} - source "$_LIB_FUNCTIONS" - source "$__PKGLIBDIR/vserver.functions" + . ${UTIL_VSERVER_VARS} - ebegin "Setting path to vshelper" + ebegin "Setting vshelper path to $_VSHELPER" set_helper eend $? ebegin "Loading default device map" - loadDeviceMap 0 "$__CONFDIR/.defaults/apps/vdevmap" + $__PKGLIBDIR/bash-wrapper 'handleDeviceMap --set 0 "$__CONFDIR/.defaults/apps/vdevmap"' eend $? } stop() { : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} - if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then + 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} - source "$_LIB_FUNCTIONS" - source "$__PKGLIBDIR/vserver.functions" + . ${UTIL_VSERVER_VARS} ebegin "Stopping all running guests" $_START_VSERVERS -j 1 --all --stop