From e17496b123218f95728c707f0224722bdc905e64 Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Tue, 9 Sep 2025 18:12:59 +0200 Subject: [PATCH] package/htpdate: fix shellcheck SC1090 Using /dev/null as file source because the package doesn't provide a default systemv service configuration file. Signed-off-by: Angelo Compagnucci [Julien: remove S43htpdate .checkpackageignore entry to fix check-package error ] Signed-off-by: Julien Olivain (cherry picked from commit 1f2b459b56b117e97164feb397ad14435717d524) Signed-off-by: Thomas Perale --- .checkpackageignore | 1 - package/htpdate/S43htpdate | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.checkpackageignore b/.checkpackageignore index 541d3d3767..fe7f4ad0ee 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -501,7 +501,6 @@ package/haveged/S21haveged Shellcheck lib_sysv.Variables package/heirloom-mailx/0001-fix-libressl-support.patch lib_patch.Upstream package/hplip/0001-build-use-pkg-config-to-discover-libusb.patch lib_patch.Upstream package/hplip/0002-configure.in-fix-AM_INIT_AUTOMAKE-call.patch lib_patch.Upstream -package/htpdate/S43htpdate Shellcheck package/i2pd/S99i2pd Shellcheck lib_sysv.Indent lib_sysv.Variables package/i7z/0001-fix-build-with-gcc-10.patch lib_patch.Upstream package/ibm-sw-tpm2/0001-Use-LONG_BIT-to-define-RADIX_BITS.patch lib_patch.Upstream diff --git a/package/htpdate/S43htpdate b/package/htpdate/S43htpdate index 5971d70639..22e5e6c803 100644 --- a/package/htpdate/S43htpdate +++ b/package/htpdate/S43htpdate @@ -4,6 +4,8 @@ DAEMON="htpdate" PIDFILE="/var/run/$DAEMON.pid" HTPDATE_ARGS="-a -s -t https://google.com" + +# shellcheck source=/dev/null test -r "/etc/default/$DAEMON" && . "/etc/default/$DAEMON" start() {