From: Stan Grishin Date: Sat, 25 Nov 2023 20:53:27 +0000 (+0000) Subject: adblock-fast: bugfix: call to missing function X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F22754%2Fhead;p=feed%2Fpackages.git adblock-fast: bugfix: call to missing function * fix call to is_number to is_integer * improve boot() Signed-off-by: Stan Grishin (cherry picked from commit ffb396bca93ba5675ec0f999cf2dc9397b28e138) --- diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile index 51824a3318..39800026b8 100644 --- a/net/adblock-fast/Makefile +++ b/net/adblock-fast/Makefile @@ -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 PKG_LICENSE:=GPL-3.0-or-later diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast index ea7b3416cd..4837b7a338 100755 --- a/net/adblock-fast/files/etc/init.d/adblock-fast +++ b/net/adblock-fast/files/etc/init.d/adblock-fast @@ -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 "'$*'"; }