diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/doconfd | 15 | ||||
-rwxr-xr-x | bin/doenvd | 15 | ||||
-rwxr-xr-x | bin/doinitd | 15 | ||||
-rwxr-xr-x | bin/newconfd | 8 | ||||
-rwxr-xr-x | bin/newenvd | 8 | ||||
-rwxr-xr-x | bin/newinitd | 8 |
6 files changed, 30 insertions, 39 deletions
diff --git a/bin/doconfd b/bin/doconfd index 87183f8..6204a3f 100755 --- a/bin/doconfd +++ b/bin/doconfd @@ -1,15 +1,12 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doconfd,v 1.3 2005/02/26 04:14:19 jstubbs Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doconfd,v 1.4 2005/05/04 23:14:40 vapier Exp $ -if [ ${#} -lt 1 ] ; then - echo "doconfd: at least one argument needed" +if [ $# -lt 1 ] ; then + echo "$0: at least one argument needed" 1>&2 exit 1 fi -tmp_INSDESTTREE="${INSDESTTREE}" -INSDESTTREE=/etc/conf.d/ -doins "$@" -INSDESTTREE="${tmp_INSDESTTREE}" -unset tmp_INSDESTTREE +exec env INSDESTTREE=/etc/conf.d/ INSOPTIONS="-m0644" \ + doins "$@" @@ -1,15 +1,12 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doenvd,v 1.3 2005/02/26 04:14:19 jstubbs Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doenvd,v 1.4 2005/05/04 23:14:40 vapier Exp $ -if [ ${#} -lt 1 ] ; then - echo "doenvd: at least one argument needed" +if [ $# -lt 1 ] ; then + echo "$0: at least one argument needed" 1>&2 exit 1 fi -tmp_INSDESTTREE="${INSDESTTREE}" -INSDESTTREE=/etc/env.d/ -doins "$@" -INSDESTTREE="${tmp_INSDESTTREE}" -unset tmp_INSDESTTREE +exec env INSDESTTREE=/etc/env.d/ INSOPTIONS="-m0644" \ + doins "$@" diff --git a/bin/doinitd b/bin/doinitd index 559294c..0471fbd 100755 --- a/bin/doinitd +++ b/bin/doinitd @@ -1,15 +1,12 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doinitd,v 1.3 2005/02/26 04:14:19 jstubbs Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/doinitd,v 1.4 2005/05/04 23:14:40 vapier Exp $ -if [ ${#} -lt 1 ] ; then - echo "doinitd: at least one argument needed" +if [ $# -lt 1 ] ; then + echo "$0: at least one argument needed" 1>&2 exit 1 fi -tmp_EXEDESTTREE="${EXEDESTTREE}" -EXEDESTTREE=/etc/init.d/ -doexe "$@" -EXEDESTTREE="${tmp_EXEDESTTREE}" -unset tmp_EXEDESTTREE +exec env EXEDESTTREE=/etc/init.d/ \ + doexe "$@" diff --git a/bin/newconfd b/bin/newconfd index 36881be..b9042c9 100755 --- a/bin/newconfd +++ b/bin/newconfd @@ -1,13 +1,13 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newconfd,v 1.2 2004/10/04 13:56:50 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newconfd,v 1.3 2005/05/04 23:14:40 vapier Exp $ if [ -z "${T}" ] || [ -z "${2}" ] ; then - echo "Nothing defined to do." + echo "$0: nothing defined to do" 1>&2 exit 1 fi rm -rf "${T}/${2}" cp "${1}" "${T}/${2}" -doconfd "${T}/${2}" +exec doconfd "${T}/${2}" diff --git a/bin/newenvd b/bin/newenvd index 08eade0..3acb06e 100755 --- a/bin/newenvd +++ b/bin/newenvd @@ -1,13 +1,13 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newenvd,v 1.2 2004/10/04 13:56:50 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newenvd,v 1.3 2005/05/04 23:14:40 vapier Exp $ if [ -z "${T}" ] || [ -z "${2}" ] ; then - echo "Nothing defined to do." + echo "$0: nothing defined to do" 1>&2 exit 1 fi rm -rf "${T}/${2}" cp "${1}" "${T}/${2}" -doenvd "${T}/${2}" +exec doenvd "${T}/${2}" diff --git a/bin/newinitd b/bin/newinitd index 69db068..3544057 100755 --- a/bin/newinitd +++ b/bin/newinitd @@ -1,13 +1,13 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newinitd,v 1.2 2004/10/04 13:56:50 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/newinitd,v 1.3 2005/05/04 23:14:40 vapier Exp $ if [ -z "${T}" ] || [ -z "${2}" ] ; then - echo "Nothing defined to do." + echo "$0: nothing defined to do" 1>&2 exit 1 fi rm -rf "${T}/${2}" cp "${1}" "${T}/${2}" -doinitd "${T}/${2}" +exec doinitd "${T}/${2}" |