adblock-fast: bugfix: call to missing function 22753/head
authorStan Grishin <stangri@melmac.ca>
Sat, 25 Nov 2023 20:53:27 +0000 (20:53 +0000)
committerStan Grishin <stangri@melmac.ca>
Sat, 25 Nov 2023 20:54:17 +0000 (20:54 +0000)
* fix call to is_number to is_integer
* improve boot()

Signed-off-by: Stan Grishin <stangri@melmac.ca>
net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index 51824a3318d4d33f7de087d9a95336cbdde4e437..39800026b8d95f0b026bc2814d694f343380f021 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.0.1
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_LICENSE:=GPL-3.0-or-later
 
index ea7b3416cd1b3c19cf5543eaade788738a2134e8..4837b7a3383e901d015995be608b1a2261866cdb 100755 (executable)
@@ -1764,7 +1764,7 @@ adb_pause() {
        local validation_result="$3"
        adb_stop 'on_pause' '' "$validation_result"
        output "Sleeping for $timeout seconds... "
-       if is_number "$timeout" && sleep "$timeout"; then
+       if is_integer "$timeout" && sleep "$timeout"; then
                output_okn
        else
                output_failn
@@ -1779,8 +1779,8 @@ boot() {
        config_load "$packageName"
        config_get procd_boot_delay 'config' 'procd_boot_delay' '0'
 # shellcheck disable=SC2154
-       { is_integer "$procd_boot_delay" && sleep "$procd_boot_delay" || true; } && \
-               rc_procd start_service 'on_boot' && service_started 'on_boot' &
+       { is_integer "$procd_boot_delay" && sleep "$procd_boot_delay"; \
+               rc_procd start_service 'on_boot' && service_started 'on_boot'; } &
 }
 check() { load_validate_config 'config' adb_check "'$*'"; }
 check_lists() { load_validate_config 'config' adb_check_lists "'$*'"; }