Merge pull request #4311 from dibdot/package-adblock
adblock: update 2.6.2
This commit is contained in:
commit
aab5744fdb
2 changed files with 7 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock
|
PKG_NAME:=adblock
|
||||||
PKG_VERSION:=2.6.1
|
PKG_VERSION:=2.6.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_LICENSE:=GPL-3.0+
|
PKG_LICENSE:=GPL-3.0+
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
adb_ver="2.6.1"
|
adb_ver="2.6.2"
|
||||||
adb_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')"
|
adb_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')"
|
||||||
adb_enabled=1
|
adb_enabled=1
|
||||||
adb_debug=0
|
adb_debug=0
|
||||||
|
@ -121,6 +121,7 @@ f_envload()
|
||||||
if [ ${adb_forcedns} -eq 1 ] && [ -z "$(uci -q get firewall.adblock_dns)" ]
|
if [ ${adb_forcedns} -eq 1 ] && [ -z "$(uci -q get firewall.adblock_dns)" ]
|
||||||
then
|
then
|
||||||
uci -q set firewall.adblock_dns="redirect"
|
uci -q set firewall.adblock_dns="redirect"
|
||||||
|
uci -q set firewall.adblock_dns.name="Adblock DNS"
|
||||||
uci -q set firewall.adblock_dns.src="lan"
|
uci -q set firewall.adblock_dns.src="lan"
|
||||||
uci -q set firewall.adblock_dns.proto="tcp udp"
|
uci -q set firewall.adblock_dns.proto="tcp udp"
|
||||||
uci -q set firewall.adblock_dns.src_dport="53"
|
uci -q set firewall.adblock_dns.src_dport="53"
|
||||||
|
@ -133,7 +134,10 @@ f_envload()
|
||||||
if [ -n "$(uci -q changes firewall)" ]
|
if [ -n "$(uci -q changes firewall)" ]
|
||||||
then
|
then
|
||||||
uci -q commit firewall
|
uci -q commit firewall
|
||||||
/etc/init.d/firewall reload >/dev/null 2>&1
|
if [ $(/etc/init.d/firewall enabled; printf ${?}) -eq 0 ]
|
||||||
|
then
|
||||||
|
/etc/init.d/firewall reload >/dev/null 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue