From 768a72597cf8ab6aa48807828e5bc0736fc65be6 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Mon, 16 Jul 2018 17:43:16 -0700 Subject: luci-app-simple-adblock: new start/stop button, better integration with simple-adblock Signed-off-by: Stan Grishin --- .../luci-app-simple-adblock/luasrc/controller/simple-adblock.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua (limited to 'applications/luci-app-simple-adblock/luasrc/controller') diff --git a/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua b/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua new file mode 100644 index 0000000000..98f69ac968 --- /dev/null +++ b/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua @@ -0,0 +1,7 @@ +module("luci.controller.simple-adblock", package.seeall) +function index() + if not nixio.fs.access("/etc/config/simple-adblock") then + return + end + entry({"admin", "services", "simple-adblock"}, cbi("simple-adblock"), _("Simple AdBlock")) +end -- cgit v1.2.3