summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-simple-adblock/luasrc/controller
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2017-01-26 14:47:53 -0800
committerStan Grishin <stangri@melmac.net>2017-03-11 21:34:12 -0800
commitc9e12f17217343f9cc29ed1b9236dac285b57646 (patch)
treef51681a92cb52c08da1241d3871fb229a56070c8 /applications/luci-app-simple-adblock/luasrc/controller
parenta7c5c018b6782f4160410981c723c82db9762ff7 (diff)
luci-app-simple-adblock: initial commit of companion package to simple-adblock
luci-app-simple-adblock: bumped version number to match main package Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc/controller')
-rw-r--r--applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua b/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua
new file mode 100644
index 000000000..46125b309
--- /dev/null
+++ b/applications/luci-app-simple-adblock/luasrc/controller/simpleadblock.lua
@@ -0,0 +1,7 @@
+module("luci.controller.simpleadblock", package.seeall)
+function index()
+ if not nixio.fs.access("/etc/config/simple-adblock") then
+ return
+ end
+ entry({"admin", "services", "simpleadblock"}, cbi("simpleadblock"), _("Simple AdBlock"))
+end