Browse Source

Merge pull request #2396 from dibdot/adblock

adblock: 0.70.2
lilik-openwrt-22.03
Hannu Nyman 9 years ago
parent
commit
e51808dc8d
3 changed files with 9 additions and 4 deletions
  1. +1
    -1
      net/adblock/Makefile
  2. +7
    -2
      net/adblock/files/adblock-helper.sh
  3. +1
    -1
      net/adblock/files/adblock-update.sh

+ 1
- 1
net/adblock/Makefile View File

@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=adblock PKG_NAME:=adblock
PKG_VERSION:=0.70.1
PKG_VERSION:=0.70.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+ PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <openwrt@brenken.org> PKG_MAINTAINER:=Dirk Brenken <openwrt@brenken.org>


+ 7
- 2
net/adblock/files/adblock-helper.sh View File

@ -472,8 +472,13 @@ f_envcheck()
f_restore f_restore
fi fi
fi fi
check="$(cat /sys/class/net/${adb_wandev}/operstate 2>/dev/null)"
if [ "${check}" = "up" ]
if [ -n "${adb_wandev4}" ]
then
rc="$(/bin/ping -c1 -W1 8.8.8.8 -I ${adb_wandev} >/dev/null 2>&1; printf $?)"
else
rc="$(/bin/ping -6 -c1 -W1 2001:4860:4860::8888 -I ${adb_wandev} >/dev/null 2>&1; printf $?)"
fi
if [ $((rc)) -eq 0 ]
then then
f_log "get active wan update interface/device (${adb_wanif}/${adb_wandev})" f_log "get active wan update interface/device (${adb_wanif}/${adb_wandev})"
break 2 break 2


+ 1
- 1
net/adblock/files/adblock-update.sh View File

@ -45,7 +45,7 @@ fi
# get current directory, script- and openwrt version # get current directory, script- and openwrt version
# #
adb_scriptdir="${0%/*}" adb_scriptdir="${0%/*}"
adb_scriptver="0.70.1"
adb_scriptver="0.70.2"
openwrt_version="$(cat /etc/openwrt_version 2>/dev/null)" openwrt_version="$(cat /etc/openwrt_version 2>/dev/null)"
# source in adblock function library # source in adblock function library


Loading…
Cancel
Save