blob: 581b49176d72877b271588bce91408143e58cb84 (
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
|
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
olsrd)
# olsrd leaves through olsr_exit(), which ends the process with
# raise(SIGTERM) even for -v, so the shell reports "Terminated"
# after the banner. The pipeline status comes from grep, so the
# check is unaffected.
olsrd -v 2>&1 | grep -F "$PKG_VERSION"
;;
olsrd-mod-*)
# Plugins are libraries and do not provide version information
exit 0
;;
olsrd-utils)
# Shell scripts only, no version information provided
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
|