diff options
author | Roy Marples <roy@marples.name> | 2007-07-22 11:27:26 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-07-22 11:27:26 +0000 |
commit | 6c54d47341f14b2cf0152aec2d1b9fe2a16ddf40 (patch) | |
tree | 1d003ca232e329f99b3ea6060b099c3d28056ea1 /sh | |
parent | 52664d77f9913ba13b3365adc5da2293549cf36e (diff) |
Had a brain fart - just echo to fd3
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/gendepends.sh | 29 |
1 files changed, 8 insertions, 21 deletions
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 |