luci/applications/luci-app-adblock/root/etc/uci-defaults/40_luci-adblock
Hannu Nyman 21bf16ce04 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>
2016-02-16 22:28:46 +02:00

11 lines
190 B
Bash
Executable file

#!/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