summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2018-07-16 17:43:16 -0700
committerStan Grishin <stangri@melmac.net>2018-07-16 17:43:16 -0700
commit768a72597cf8ab6aa48807828e5bc0736fc65be6 (patch)
tree02a99e9df7e3a474144f34a8e95d3433601ed387 /applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua
parentf4dd2e6dfbc97769ff6eb4cc648f91e28e6b5603 (diff)
luci-app-simple-adblock: new start/stop button, better integration with simple-adblock
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua')
-rw-r--r--applications/luci-app-simple-adblock/luasrc/controller/simple-adblock.lua7
1 files changed, 7 insertions, 0 deletions
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