From fad01ae1a4273c883185d359f0cc78ccd5d435cb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 12 Sep 2019 18:56:24 +0200 Subject: luci-base: sys.lua: fix init script enable action Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/sys.lua | 4 ++-- 1 file 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) -- cgit v1.2.3