summaryrefslogtreecommitdiffstats
path: root/net/cifs-utils/test-version.sh
blob: 76e0f007846b153301cb6f8395350fba5ab5f6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

case "$PKG_NAME" in
cifsmount)
	# mount.cifs -V prints "mount.cifs version: X.Y".
	mount.cifs -V 2>&1 | grep -F "$PKG_VERSION"
	;;
*)
	# smbinfo is a python sub-command tool with no version flag, so the
	# generic probe cannot read a version from it; nothing to assert.
	exit 0
	;;
esac