diff options
author | Stan Grishin <stangri@melmac.net> | 2017-01-26 14:47:53 -0800 |
---|---|---|
committer | Stan Grishin <stangri@melmac.net> | 2017-03-11 21:34:12 -0800 |
commit | c9e12f17217343f9cc29ed1b9236dac285b57646 (patch) | |
tree | f51681a92cb52c08da1241d3871fb229a56070c8 /applications/luci-app-simple-adblock/luasrc/controller | |
parent | a7c5c018b6782f4160410981c723c82db9762ff7 (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.lua | 7 |
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 0000000000..46125b3098 --- /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 |