diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-12 18:56:24 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-12 18:56:24 +0200 |
commit | fad01ae1a4273c883185d359f0cc78ccd5d435cb (patch) | |
tree | 74586aad21b1156a294daa4731f3a86e9c9e9c00 /modules/luci-base | |
parent | 53516cc302647b7c43f3c1800e6a4624727c8a8a (diff) |
luci-base: sys.lua: fix init script enable action
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/sys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/sys.lua b/modules/luci-base/luasrc/sys.lua index d0df275724..5aede84848 100644 --- a/modules/luci-base/luasrc/sys.lua +++ b/modules/luci-base/luasrc/sys.lua @@ -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) |