From 6c54d47341f14b2cf0152aec2d1b9fe2a16ddf40 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 22 Jul 2007 11:27:26 +0000 Subject: Had a brain fart - just echo to fd3 --- sh/gendepends.sh | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'sh/gendepends.sh') diff --git a/sh/gendepends.sh b/sh/gendepends.sh index 5927aab1..6ddde860 100755 --- a/sh/gendepends.sh +++ b/sh/gendepends.sh @@ -6,29 +6,19 @@ . /etc/init.d/functions.sh need() { - exec 1>&3 - [ -n "$*" ] && echo "${SVCNAME} ineed $*" - exec 1>&2 + [ -n "$*" ] && echo "${SVCNAME} ineed $*" >&3 } use() { - exec 1>&3 - [ -n "$*" ] && echo "${SVCNAME} iuse $*" - exec 1>&2 + [ -n "$*" ] && echo "${SVCNAME} iuse $*" >&3 } before() { - exec 1>&3 - [ -n "$*" ] && echo "${SVCNAME} ibefore $*" - exec 1>&2 + [ -n "$*" ] && echo "${SVCNAME} ibefore $*" >&3 } after() { - exec 1>&3 - [ -n "$*" ] && echo "${SVCNAME} iafter $*" - exec 1>&2 + [ -n "$*" ] && echo "${SVCNAME} iafter $*" >&3 } provide() { - exec 1>&3 - [ -n "$*" ] && echo "${SVCNAME} iprovide $*" - exec 1>&2 + [ -n "$*" ] && echo "${SVCNAME} iprovide $*" >&3 } depend() { : @@ -48,17 +38,14 @@ for SVCNAME in * ; do rc_c=${SVCNAME%%.*} if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then - [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2 + [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" fi unset rc_c - [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2 + [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" if . /etc/init.d/"${SVCNAME}" ; then - exec 1>&3 - echo "${SVCNAME}" - exec 1>&2 - + echo "${SVCNAME}" >&3 depend # Add any user defined depends -- cgit v1.2.3