simple-adblock: bugfix: start downloads on cold boot 11924/head
authorStan Grishin <stangri@melmac.net>
Wed, 22 Apr 2020 17:45:53 +0000 (17:45 +0000)
committerStan Grishin <stangri@melmac.net>
Wed, 22 Apr 2020 17:45:53 +0000 (17:45 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.net>
net/simple-adblock/Makefile
net/simple-adblock/files/simple-adblock.conf
net/simple-adblock/files/simple-adblock.init

index a113b68045630aa222557bb94048015151170607..793cb14d5a6909eda846cbeed19d4b7d52b74315 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=simple-adblock
 PKG_VERSION:=1.8.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
 PKG_LICENSE:=GPL-3.0-or-later
 
index 8690ca068db64bada4b9b0b48d5e632711fcbfa3..44bdc8e25dd7a9186ec538041fe3706be4d3a598 100644 (file)
@@ -74,10 +74,6 @@ config simple-adblock 'config'
 # blocklist too big for most routers
 #      list blacklist_hosts_url 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts'
 
-# File size: 1.7M
-# blocklist too big for most routers
-#      list blacklist_hosts_url 'https://hosts-file.net/ad_servers.txt'
-
 # File size: 3.1M
 # blocklist too big for most routers
 #      list blacklist_hosts_url 'https://hostsfile.mine.nu/Hosts'
index aec915f5f73221dbd6b5d9b9bfdcc2f2ca6dbf59..fad1d399d3a2df6b077161bd72acbddffd3b4a6e 100644 (file)
@@ -922,6 +922,8 @@ start_service() {
        if [ "$action" = 'on_boot' ] || [ "$1" = 'on_boot' ]; then
                if cacheOps 'testGzip' || cacheOps 'test'; then
                        action='restore'
+               else
+                       action='download'
                fi
        elif [ "$action" = 'download' ] || [ "$1" = 'download' ] || [ -n "$error" ]; then
                action='download'