diff options
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/gendepends.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sh/gendepends.sh b/sh/gendepends.sh index aa494f03..6c86f2a9 100755 --- a/sh/gendepends.sh +++ b/sh/gendepends.sh @@ -33,14 +33,15 @@ for SVCNAME in * ; do SVCNAME=${SVCNAME##*/} ( + rc_c=${SVCNAME%%.*} + if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then + [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2 + fi + unset rc_c + + [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2 + if . /etc/init.d/"${SVCNAME}" ; then - rc_c=${SVCNAME%%.*} - if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then - [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" - fi - unset rc_c - - [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" echo "${SVCNAME}" depend |