diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-02-16 22:28:46 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2016-02-16 22:28:46 +0200 |
commit | 21bf16ce04adaaa28811f96f4b29d6dc74c36ae6 (patch) | |
tree | 7ada9d18d8f3190e0859c6ee51bf9814dd8f22c0 /applications/luci-app-adblock/root/etc/uci-defaults | |
parent | a860de860ad8c15d1717f317c91c2e9168260a4f (diff) |
luci-app-adblock: User interface for the 'adblock' package
Simple user interface for the 'adblock' package from packages feed.
Adds 'Adblock' item to the Services menu in LuCI.
Allows enabling/disabling the service and selecting blocklists.
Configuration of the blocklist URLs and selection of Shalla categories
needs to be done manually to the config file, if needed.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-adblock/root/etc/uci-defaults')
-rwxr-xr-x | applications/luci-app-adblock/root/etc/uci-defaults/40_luci-adblock | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-adblock/root/etc/uci-defaults/40_luci-adblock b/applications/luci-app-adblock/root/etc/uci-defaults/40_luci-adblock new file mode 100755 index 0000000000..1f7fb1c0fb --- /dev/null +++ b/applications/luci-app-adblock/root/etc/uci-defaults/40_luci-adblock @@ -0,0 +1,11 @@ +#!/bin/sh + +uci -q batch <<-EOF >/dev/null + delete ucitrack.@adblock[-1] + add ucitrack adblock + set ucitrack.@adblock[-1].init=adblock + commit ucitrack +EOF + +rm -f /tmp/luci-indexcache +exit 0 |