summaryrefslogtreecommitdiffstats
path: root/naywatch/test-version.sh
blob: d8b577e42994add3a9ee1eb69a1af4d166ce376b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
naywatch)
	# naywatch takes positional arguments (check interval, watchdog
	# timeout, ...), not options, so a probe flag ends up as the
	# check interval and the script enters its monitoring loop
	# instead of reporting anything, until the probe timeout kills
	# it.
	exit 0
	;;

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