diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index 15cdb868..a4d9e7cf 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -174,6 +174,10 @@ status() 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 # If we're net.eth0 or openvpn.work then load net or openvpn config _c=${RC_SVCNAME%%.*}