We should export SVCNAME so service_* functions work in depend

This commit is contained in:
Roy Marples 2007-12-30 16:59:56 +00:00
parent f97a5cd9cb
commit b6fcfd1157

View File

@ -63,7 +63,7 @@ for _dir in /etc/init.d /usr/local/etc/init.d; do
[ "${one}" = "#!/sbin/runscript" ] || continue
unset one two
SVCNAME=${SVCNAME##*/}
export SVCNAME=${SVCNAME##*/}
(
# Save stdout in fd3, then remap it to stderr
exec 3>&1 1>&2