luci-base: sys.lua: fix init script enable action

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-09-12 18:56:24 +02:00
parent 53516cc302
commit fad01ae1a4

View file

@ -189,7 +189,7 @@ local function _nethints(what, callback)
end
end
)
cur:foreach("dhcp", "odhcpd",
function(s)
if type(s.leasefile) == "string" and fs.access(s.leasefile) then
@ -645,7 +645,7 @@ function init.enabled(name)
end
function init.enable(name)
return (init_action("enable", name) == 1)
return (init_action("enable", name) == 0)
end
function init.disable(name)