Fix the old RC_USE names.
This commit is contained in:
parent
a276050a54
commit
f20099bc33
@ -79,18 +79,19 @@ do
|
|||||||
depend
|
depend
|
||||||
|
|
||||||
# Add any user defined depends
|
# Add any user defined depends
|
||||||
for _deptype in config need use after before provide keyword; do
|
for _deptype in config:CONFIG need:NEED use:USE \
|
||||||
eval _depends=\$rc_$(shell_var "${SVCNAME}")_${_deptype}
|
after:AFTER before:BEFORE \
|
||||||
[ -z "${_depends}" ] && eval _depends=\$rc_${_deptype}
|
provide:PROVIDE keyword:KEYWORD; do
|
||||||
${_deptype} ${_depends}
|
IFS=:
|
||||||
done
|
set -- ${_deptype}
|
||||||
|
unset IFS
|
||||||
|
eval _depends=\$rc_$(shell_var "${SVCNAME}")_$1
|
||||||
|
[ -z "${_depends}" ] && eval _depends=\$rc_$1
|
||||||
|
[ -z "${_depends}" ] && eval _depends=\$RC_$(shell_var "${SVCNAME}")_$2
|
||||||
|
[ -z "${_depends}" ] && eval _depends=\$RC_$2
|
||||||
|
|
||||||
for _deptype in CONFIG NEED USE AFTER BEFORE PROVIDE KEYWORD; do
|
$1 ${_depends}
|
||||||
eval _depends=\$rc_$(shell_var "${SVCNAME}")_${_deptype}
|
|
||||||
[ -z "${_depends}" ] && eval _depends=\$RC_${_deptype}
|
|
||||||
${_deptype} ${_depends}
|
|
||||||
done
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user