adblock: bugfix 2.1.5 (release 2)
authorDirk Brenken <redacted>
Sun, 29 Jan 2017 20:24:05 +0000 (21:24 +0100)
committerDirk Brenken <redacted>
Sun, 29 Jan 2017 20:24:05 +0000 (21:24 +0100)
* fix wget/uclient-switch

Signed-off-by: Dirk Brenken <redacted>
net/adblock/Makefile
net/adblock/files/adblock.sh

index 414fa78bd9f6bc36a13d80c99c86d45b5d71a953..e487d25ac5429e3f20bc23d501a3ab6cdff6cefe 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=2.1.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index c936a979538e4ed5571beceb17094a5698ece738..2737ced14b09c1904a652c76fb93aa1579d0072e 100755 (executable)
@@ -109,15 +109,15 @@ f_envcheck()
 
     # check fetch utility
     #
-    if [ -z "${adb_fetch}" ] || [ -z "${adb_fetchparm}" ] || [ ! -f "${adb_fetch}" ] || [ "$(readlink -fn "${adb_fetch}")" = "/bin/busybox" ]
-    then
-        f_log "error" "status ::: required download utility with ssl support not found, e.g. install full 'wget' package"
-    fi
-    if [ "${adb_fetch}" = "/usr/bin/wget" ] && [ "$(readlink -fn "${adb_fetch}")" = "/bin/uclient-fetch" ]
+    if [ ! -f "${adb_fetch}" ] && [ "$(readlink -fn "/bin/wget")" = "/bin/uclient-fetch" ]
     then
         adb_fetch="/bin/uclient-fetch"
         adb_fetchparm="-q --timeout=5 --no-check-certificate -O"
     fi
+    if [ -z "${adb_fetch}" ] || [ -z "${adb_fetchparm}" ] || [ ! -f "${adb_fetch}" ] || [ "$(readlink -fn "${adb_fetch}")" = "/bin/busybox" ]
+    then
+        f_log "error" "status ::: required download utility with ssl support not found, e.g. install full 'wget' package"
+    fi
 
     # create dns hideout directory
     #
git clone https://git.99rst.org/PROJECT