* luci/lib/sys: fixes for sys.init api
This commit is contained in:
parent
24a52d6f3e
commit
77159d8b66
@ -561,7 +561,7 @@ end
|
||||
-- @return Numeric index value
|
||||
function init.index(name)
|
||||
if luci.fs.access(init.dir..name) then
|
||||
return call("source "..init.dir..name.." && exit $START")
|
||||
return call("source "..init.dir..name.."; exit $START")
|
||||
end
|
||||
end
|
||||
|
||||
@ -570,7 +570,7 @@ end
|
||||
-- @return Boolean indicating success
|
||||
function init.enable(name)
|
||||
if luci.fs.access(init.dir..name) then
|
||||
return ( call(init.dir..name.." enable") == 0 )
|
||||
return ( call(init.dir..name.." enable") == 1 )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user