From c805064a7dbbaa0e3706252a9a338f4353dd5cd4 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Wed, 22 Apr 2020 17:45:53 +0000 Subject: [PATCH] simple-adblock: bugfix: start downloads on cold boot Signed-off-by: Stan Grishin --- net/simple-adblock/Makefile | 2 +- net/simple-adblock/files/simple-adblock.conf | 4 ---- net/simple-adblock/files/simple-adblock.init | 2 ++ 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/net/simple-adblock/Makefile b/net/simple-adblock/Makefile index a113b6804..793cb14d5 100644 --- a/net/simple-adblock/Makefile +++ b/net/simple-adblock/Makefile @@ -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 PKG_LICENSE:=GPL-3.0-or-later diff --git a/net/simple-adblock/files/simple-adblock.conf b/net/simple-adblock/files/simple-adblock.conf index 8690ca068..44bdc8e25 100644 --- a/net/simple-adblock/files/simple-adblock.conf +++ b/net/simple-adblock/files/simple-adblock.conf @@ -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' diff --git a/net/simple-adblock/files/simple-adblock.init b/net/simple-adblock/files/simple-adblock.init index aec915f5f..fad1d399d 100644 --- a/net/simple-adblock/files/simple-adblock.init +++ b/net/simple-adblock/files/simple-adblock.init @@ -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'