X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gentoo%2Futil-vserver;h=94903cce775f65c48f6005b582ecf0eadc9e1f20;hb=a8fa6daead9e88f6d4b1934490b69bf261c845e6;hp=18273262ad85a4d905be7d8a35d5f29e7775c254;hpb=e9ae5b850b403b218c811089d1f848b6e84417da;p=util-vserver.git diff --git a/gentoo/util-vserver b/gentoo/util-vserver index 1827326..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 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