luci-base: sys.lua: fix init script enable action
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
53516cc302
commit
fad01ae1a4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue