summaryrefslogtreecommitdiffstats
path: root/utils/lm-sensors/test-version.sh
blob: 1aee29c3d87c4140ffec22b2ed62f4b4b77ec86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
lm-sensors)
	sensors --version | grep -F "$PKG_VERSION"
	;;

lm-sensors-detect)
	# Require user input
	exit 0
	;;

libsensors*)
	# Shared libraries
	exit 0
	;;

isadump|isaset)
	# Do not provide version information
	exit 0
	;;

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