whitespace
This commit is contained in:
parent
6c54d47341
commit
f1f5b0c367
@ -26,13 +26,13 @@ depend() {
|
|||||||
|
|
||||||
cd /etc/init.d
|
cd /etc/init.d
|
||||||
for SVCNAME in * ; do
|
for SVCNAME in * ; do
|
||||||
[ -x "${SVCNAME}" ] || continue
|
[ -x "${SVCNAME}" ] || continue
|
||||||
case "${SVCNAME}" in
|
case "${SVCNAME}" in
|
||||||
*.sh) continue ;;
|
*.sh) continue ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
SVCNAME=${SVCNAME##*/}
|
SVCNAME=${SVCNAME##*/}
|
||||||
(
|
(
|
||||||
# Save stdout in fd3, then remap it to stderr
|
# Save stdout in fd3, then remap it to stderr
|
||||||
exec 3>&1 1>&2
|
exec 3>&1 1>&2
|
||||||
|
|
||||||
@ -43,10 +43,10 @@ for SVCNAME in * ; do
|
|||||||
unset rc_c
|
unset rc_c
|
||||||
|
|
||||||
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}"
|
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}"
|
||||||
|
|
||||||
if . /etc/init.d/"${SVCNAME}" ; then
|
if . /etc/init.d/"${SVCNAME}" ; then
|
||||||
echo "${SVCNAME}" >&3
|
echo "${SVCNAME}" >&3
|
||||||
depend
|
depend
|
||||||
|
|
||||||
# Add any user defined depends
|
# Add any user defined depends
|
||||||
need ${RC_NEED}
|
need ${RC_NEED}
|
||||||
@ -54,8 +54,8 @@ for SVCNAME in * ; do
|
|||||||
before ${RC_BEFORE}
|
before ${RC_BEFORE}
|
||||||
after ${RC_AFTER}
|
after ${RC_AFTER}
|
||||||
provide ${RC_PROVIDE}
|
provide ${RC_PROVIDE}
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
||||||
# vim: set ts=4 :
|
# vim: set ts=4 :
|
||||||
|
Loading…
Reference in New Issue
Block a user