aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/gendepends.sh15
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