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