summaryrefslogtreecommitdiffstats
path: root/net/bird2/test-version.sh
blob: 70b45c997f2ed0a9b8ad3c60f6e13f0f0e58c47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
bird2|bird2c|bird2cl)
	# birdc and birdcl do not report a version; check the daemon,
	# which both clients depend on anyway
	bird --version 2>&1 | grep -F "$PKG_VERSION"
	;;

*)
	echo "Untested package: $PKG_NAME" >&2
	exit 1
	;;
esac