adblock-fast: bugfix: pause command 23077/head
authorStan Grishin <stangri@melmac.ca>
Sun, 7 Jan 2024 23:07:34 +0000 (23:07 +0000)
committerStan Grishin <stangri@melmac.ca>
Sun, 7 Jan 2024 23:08:58 +0000 (23:08 +0000)
* the pause command used to incorrectly cause block-lists reload, this
  has been fixed in this version

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit dfeeabbebf7fa337f02fa24d40a488e2acfccbbb)

net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index a5d137b39d82bc89b09e89249f5534af7356ffe0..f3cebf03698d8c810b97324fb1f38d7d0e42d4fd 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.1.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_LICENSE:=GPL-3.0-or-later
 
index bb09717705e71fe2347b8c425e6cfe61fe346095..368de4e49aaae6231ff4b716bfca176f5bf38724 100755 (executable)
@@ -1716,7 +1716,7 @@ adb_start() {
        action="$(config_cache get 'trigger_service')"
        fw4_restart_flag="$(config_cache get 'trigger_fw4')"
 
-       if [ "$action" = 'on_boot' ] || [ "$param" = 'on_boot' ]; then
+       if [ "$action" = 'on_boot' ] || [ "$param" = 'on_boot' ] || [ "$param" = 'on_pause' ]; then
                if cache 'test_gzip' || cache 'test'; then
                        action='restore'
                else