From bb83dc2f980089e13b7832ca08b472f5402cfb85 Mon Sep 17 00:00:00 2001 From: Andrea Pesaresi Date: Fri, 28 Aug 2026 18:28:58 +0200 Subject: [PATCH] ksmbd-tools: add package version test The generic package version check invokes ksmbd.tools directly, but the multicall binary rejects that basename and fails the test. Check the version through ksmbd.mountd and skip subpackages without versioned executables. Signed-off-by: Andrea Pesaresi (cherry picked from commit 4ce49b0a9da18d847df2e6479e127d9c11a3f764) Signed-off-by: Josef Schlehofer --- net/ksmbd-tools/test-version.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 net/ksmbd-tools/test-version.sh diff --git a/net/ksmbd-tools/test-version.sh b/net/ksmbd-tools/test-version.sh new file mode 100644 index 0000000000..aa2241aa24 --- /dev/null +++ b/net/ksmbd-tools/test-version.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +ksmbd-server) + /usr/sbin/ksmbd.mountd -V 2>&1 | grep -F "$PKG_VERSION" + ;; + +ksmbd-avahi-service|\ +ksmbd-hotplug) + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac