Revert "Revert "Let runscript enter the service dir before expand globs""

This reverts commit f971c4c0b5.
After further discussion, this is a good first step toward a fix, so I
am putting it back.
This commit is contained in:
William Hubbs 2012-04-26 12:11:58 -05:00
parent f971c4c0b5
commit 3967077da3

View File

@ -174,6 +174,10 @@ status()
yesno $RC_DEBUG && set -x yesno $RC_DEBUG && set -x
# Enter the dir of the init script to fix the globbing with e.g. depend()
# bug 412677
cd ${RC_SERVICE%/*}
_conf_d=${RC_SERVICE%/*}/../conf.d _conf_d=${RC_SERVICE%/*}/../conf.d
# If we're net.eth0 or openvpn.work then load net or openvpn config # If we're net.eth0 or openvpn.work then load net or openvpn config
_c=${RC_SVCNAME%%.*} _c=${RC_SVCNAME%%.*}