Merge pull request #20645 from stangri/master-simple-adblock
simple-adblock: update init file and config
This commit is contained in:
commit
bdd54b0872
3 changed files with 7 additions and 4 deletions
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=simple-adblock
|
PKG_NAME:=simple-adblock
|
||||||
PKG_VERSION:=1.9.4
|
PKG_VERSION:=1.9.4
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,10 @@ config simple-adblock 'config'
|
||||||
# block-list too big for most routers
|
# block-list too big for most routers
|
||||||
# list blocked_hosts_url 'https://cdn.jsdelivr.net/gh/StevenBlack/hosts/hosts'
|
# 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
|
# File size: 3.1M
|
||||||
# block-list too big for most routers
|
# block-list too big for most routers
|
||||||
# list blocked_hosts_url 'https://hostsfile.mine.nu/Hosts'
|
# list blocked_hosts_url 'https://hostsfile.mine.nu/Hosts'
|
||||||
|
|
|
@ -88,9 +88,6 @@ outputCache=
|
||||||
awk='awk'
|
awk='awk'
|
||||||
load_environment_flag=
|
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; }
|
debug() { local i j; for i in "$@"; do eval "j=\$$i"; echo "${i}: ${j} "; done; }
|
||||||
|
|
||||||
uci_add_list_if_new() {
|
uci_add_list_if_new() {
|
||||||
|
@ -1562,6 +1559,8 @@ stop_service() { load_validate_config 'config' adb_stop "'$*'"; }
|
||||||
version() { echo "$PKG_VERSION"; }
|
version() { echo "$PKG_VERSION"; }
|
||||||
|
|
||||||
load_validate_config() {
|
load_validate_config() {
|
||||||
|
. /lib/functions/network.sh
|
||||||
|
. /usr/share/libubox/jshn.sh
|
||||||
local enabled
|
local enabled
|
||||||
local force_dns
|
local force_dns
|
||||||
local force_dns_port
|
local force_dns_port
|
||||||
|
|
Loading…
Reference in a new issue