From 61cf3442858ddb8794efb91b336113929325e302 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 23 Jan 2018 21:48:28 +0300 Subject: fixed dynapoint.lua, there was no translation Signed-off-by: Vladimir --- .../luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-simple-adblock/luasrc/model') diff --git a/applications/luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua b/applications/luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua index ff4638e9b8..e80cfb39eb 100644 --- a/applications/luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua +++ b/applications/luci-app-simple-adblock/luasrc/model/cbi/simpleadblock.lua @@ -11,10 +11,11 @@ end function e.write(self, section, value) if value == "1" then - luci.sys.call("/etc/init.d/simple-adblock enable >/dev/null") - luci.sys.call("/etc/init.d/simple-adblock start >/dev/null") + luci.sys.init.enable("simple-adblock") + luci.sys.init.start("simple-adblock") else - luci.sys.call("/etc/init.d/simple-adblock stop >/dev/null") + luci.sys.init.stop("simple-adblock") + luci.sys.init.disable("simple-adblock") end return Flag.write(self, section, value) end -- cgit v1.2.3