Add rc-service and update all softlevel refs to runlevel.

This commit is contained in:
Roy Marples
2008-03-19 17:11:50 +00:00
parent 089caec283
commit d9ec62b22a
14 changed files with 96 additions and 28 deletions

View File

@@ -47,8 +47,8 @@ _conf_d=${1%/*}/../conf.d
# If we're net.eth0 or openvpn.work then load net or openvpn config
_c=${SVCNAME%%.*}
if [ -n "${_c}" -a "${_c}" != "${SVCNAME}" ]; then
if [ -e "${_conf_d}/${_c}.${RC_SOFTLEVEL}" ]; then
. "${_conf_d}/${_c}.${RC_SOFTLEVEL}"
if [ -e "${_conf_d}/${_c}.${RC_RUNLEVEL}" ]; then
. "${_conf_d}/${_c}.${RC_RUNLEVEL}"
elif [ -e "${_conf_d}/${_c}" ]; then
. "${_conf_d}//${_c}"
fi
@@ -56,8 +56,8 @@ fi
unset _c
# Overlay with our specific config
if [ -e "${_conf_d}/${SVCNAME}.${RC_SOFTLEVEL}" ]; then
. "${_conf_d}/${SVCNAME}.${RC_SOFTLEVEL}"
if [ -e "${_conf_d}/${SVCNAME}.${RC_RUNLEVEL}" ]; then
. "${_conf_d}/${SVCNAME}.${RC_RUNLEVEL}"
elif [ -e "${_conf_d}/${SVCNAME}" ]; then
. "${_conf_d}/${SVCNAME}"
fi