#!/bin/bash | |
# Copyright 1999-2010 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
if [[ $# -lt 1 ]] ; then | |
if [[ -z ${PORTAGE_BIN_PATH} ]]; then | |
PORTAGE_BIN_PATH=$(dirname "$(dirname "$(readlink -f "$0")")") | |
fi | |
source "${PORTAGE_BIN_PATH}/isolated-functions.sh" | |
__helpers_die "${0##*/}: at least one argument needed" | |
exit 1 | |
fi | |
exec \ | |
env \ | |
_E_EXEDESTTREE_="/etc/init.d/" \ | |
doexe "$@" |