* move network.sh and jshn.sh includes into load_validate_config function
to prevent errors when adding the package to image with the Image Builder
* add @bongochong compressed domains block-list to the config
Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit
35f4830de79f332dd532fcb26e704d1356f99c94)
PKG_NAME:=simple-adblock
PKG_VERSION:=1.9.4
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
PKG_LICENSE:=GPL-3.0-or-later
# block-list too big for most routers
# list blocked_hosts_url 'https://cdn.jsdelivr.net/gh/StevenBlack/hosts/hosts'
+# File size: 2.0M
+# block-list too big for most routers
+# list blocked_domains_url https://cdn.jsdelivr.net/gh/bongochong/CombinedPrivacyBlockLists/NoFormatting/cpbl-ctld.txt
+
# File size: 3.1M
# block-list too big for most routers
# list blocked_hosts_url 'https://hostsfile.mine.nu/Hosts'
awk='awk'
load_environment_flag=
-. /lib/functions/network.sh
-. /usr/share/libubox/jshn.sh
-
debug() { local i j; for i in "$@"; do eval "j=\$$i"; echo "${i}: ${j} "; done; }
uci_add_list_if_new() {
version() { echo "$PKG_VERSION"; }
load_validate_config() {
+ . /lib/functions/network.sh
+ . /usr/share/libubox/jshn.sh
local enabled
local force_dns
local force_dns_port