mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 14:54:33 +04:00
adblock: update 4.4.5-2
* fixed f_uci function * fixed f_switch function, reported in the turris forum Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=adblock
|
||||
PKG_VERSION:=4.4.5
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
||||
|
||||
@@ -531,7 +531,7 @@ f_rmdns() {
|
||||
f_uci() {
|
||||
local config="${1}"
|
||||
|
||||
if [ -n "${config}" ]; then
|
||||
if [ -n "$(uci -q changes "${config}")" ]; then
|
||||
uci_commit "${config}"
|
||||
case "${config}" in
|
||||
"firewall")
|
||||
@@ -1027,11 +1027,11 @@ f_switch() {
|
||||
elif [ "${status}" = "paused" ] && [ "${mode}" = "resume" ]; then
|
||||
if [ "${adb_dnsshift}" = "0" ] && [ -f "${adb_backupdir}/${adb_dnsfile}" ]; then
|
||||
mv -f "${adb_backupdir}/${adb_dnsfile}" "${adb_finaldir}/${adb_dnsfile}"
|
||||
f_count "switch" "${adb_finaldir}/${adb_dnsfile}"
|
||||
f_count "final" "${adb_finaldir}/${adb_dnsfile}"
|
||||
done="true"
|
||||
elif [ "${adb_dnsshift}" = "1" ] && [ ! -L "${adb_finaldir}/${adb_dnsfile}" ]; then
|
||||
ln -fs "${adb_finaldir}/${adb_dnsfile}" "${adb_dnsdir}/${adb_dnsfile}"
|
||||
f_count "switch" "${adb_finaldir}/${adb_dnsfile}"
|
||||
f_count "final" "${adb_finaldir}/${adb_dnsfile}"
|
||||
done="true"
|
||||
fi
|
||||
fi
|
||||
@@ -1040,7 +1040,7 @@ f_switch() {
|
||||
f_jsnup "${mode}"
|
||||
f_log "info" "${mode} adblock service"
|
||||
else
|
||||
f_count "switch" "${adb_finaldir}/${adb_dnsfile}"
|
||||
f_count "final" "${adb_finaldir}/${adb_dnsfile}"
|
||||
f_jsnup "${status}"
|
||||
fi
|
||||
f_rmtemp
|
||||
|
||||
Reference in New Issue
Block a user