libs/sys: fix luci.sys.init.index() (#399)
This commit is contained in:
parent
98bf018c1b
commit
216264b6e4
1 changed files with 1 additions and 1 deletions
|
@ -795,7 +795,7 @@ end
|
||||||
-- @return Numeric index value
|
-- @return Numeric index value
|
||||||
function init.index(name)
|
function init.index(name)
|
||||||
if fs.access(init.dir..name) then
|
if fs.access(init.dir..name) then
|
||||||
return call("env -i sh -c 'source %s%s; exit $START' >/dev/null"
|
return call("env -i sh -c 'source %s%s enabled; exit ${START:-255}' >/dev/null"
|
||||||
%{ init.dir, name })
|
%{ init.dir, name })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue