adblock-fast: bugfix: dl command

* only test gzip existence and reset action/param on boot

Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
Stan Grishin
2025-09-16 00:32:49 +00:00
parent 578016e5b3
commit 02644ad1e4
2 changed files with 10 additions and 4 deletions

View File

@@ -2167,9 +2167,15 @@ adb_start() {
local param="$1" validation_result="$3"
dns_set_output_values "$dns"
adb_file test_gzip && unset adbf_boot_flag && param='on_start'
[ -n "$adbf_boot_flag" ] && return 0
if [ "$action" = 'on_boot' ] || [ -n "$adbf_boot_flag" ]; then
if adb_file test_gzip; then
unset adbf_boot_flag
action='on_start'
param='on_start'
else
return 0
fi
fi
load_environment "$validation_result" "$param" || return 1
status="$(json get status)"