Support PORTAGE_REPOSITORIES environmental variable, which overrides
[portage.git] / bin / ebuild-helpers / doinitd
1 #!/bin/bash
2 # Copyright 1999-2010 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 if [[ $# -lt 1 ]] ; then
6         source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
7         __helpers_die "${0##*/}: at least one argument needed"
8         exit 1
9 fi
10
11 exec \
12 env \
13 _E_EXEDESTTREE_="/etc/init.d/" \
14 doexe "$@"