We should export SVCNAME so service_* functions work in depend
This commit is contained in:
parent
f97a5cd9cb
commit
b6fcfd1157
@ -63,7 +63,7 @@ for _dir in /etc/init.d /usr/local/etc/init.d; do
|
|||||||
[ "${one}" = "#!/sbin/runscript" ] || continue
|
[ "${one}" = "#!/sbin/runscript" ] || continue
|
||||||
unset one two
|
unset one two
|
||||||
|
|
||||||
SVCNAME=${SVCNAME##*/}
|
export 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
|
||||||
|
Loading…
Reference in New Issue
Block a user