summaryrefslogtreecommitdiff
path: root/net/adblock-fast
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-11-25 20:53:27 +0000
committerStan Grishin <stangri@melmac.ca>2023-11-25 20:54:17 +0000
commitffb396bca93ba5675ec0f999cf2dc9397b28e138 (patch)
tree72a8ed94cda718f0df25ecd2c39c5ab904620288 /net/adblock-fast
parentc438a1605215c449027d97cb1628e20a119c91da (diff)
adblock-fast: bugfix: call to missing function
* fix call to is_number to is_integer * improve boot() Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'net/adblock-fast')
-rw-r--r--net/adblock-fast/Makefile2
-rwxr-xr-xnet/adblock-fast/files/etc/init.d/adblock-fast6
2 files changed, 4 insertions, 4 deletions
diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile
index 51824a331..39800026b 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 <stangri@melmac.ca>
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 ea7b3416c..4837b7a33 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 "'$*'"; }