mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 05:36:34 +04:00
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 <andreapesaresi82@gmail.com>
(cherry picked from commit 4ce49b0a9d)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
1 parent
d7978609ec
commit
bb83dc2f98
1 file changed
+19
@@ -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
|
||||
Reference in new issue
Block a user