Browse Source

simple-adblock: bugfix: start downloads on cold boot

Signed-off-by: Stan Grishin <stangri@melmac.net>
lilik-openwrt-22.03
Stan Grishin 5 years ago
parent
commit
c805064a7d
3 changed files with 3 additions and 5 deletions
  1. +1
    -1
      net/simple-adblock/Makefile
  2. +0
    -4
      net/simple-adblock/files/simple-adblock.conf
  3. +2
    -0
      net/simple-adblock/files/simple-adblock.init

+ 1
- 1
net/simple-adblock/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=simple-adblock PKG_NAME:=simple-adblock
PKG_VERSION:=1.8.3 PKG_VERSION:=1.8.3
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net> PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later


+ 0
- 4
net/simple-adblock/files/simple-adblock.conf View File

@ -74,10 +74,6 @@ config simple-adblock 'config'
# blocklist too big for most routers # blocklist too big for most routers
# list blacklist_hosts_url 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts' # 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 # File size: 3.1M
# blocklist too big for most routers # blocklist too big for most routers
# list blacklist_hosts_url 'https://hostsfile.mine.nu/Hosts' # list blacklist_hosts_url 'https://hostsfile.mine.nu/Hosts'


+ 2
- 0
net/simple-adblock/files/simple-adblock.init View File

@ -922,6 +922,8 @@ start_service() {
if [ "$action" = 'on_boot' ] || [ "$1" = 'on_boot' ]; then if [ "$action" = 'on_boot' ] || [ "$1" = 'on_boot' ]; then
if cacheOps 'testGzip' || cacheOps 'test'; then if cacheOps 'testGzip' || cacheOps 'test'; then
action='restore' action='restore'
else
action='download'
fi fi
elif [ "$action" = 'download' ] || [ "$1" = 'download' ] || [ -n "$error" ]; then elif [ "$action" = 'download' ] || [ "$1" = 'download' ] || [ -n "$error" ]; then
action='download' action='download'


Loading…
Cancel
Save