Fix Debian bug #307905: Incorrect usage output
[monitoring-plugins.git] / plugins-scripts / utils.sh.in
blobb30b908395921dea466916293fb7f7e251e94521
1 #! /bin/sh
3 STATE_OK=0
4 STATE_WARNING=1
5 STATE_CRITICAL=2
6 STATE_UNKNOWN=3
7 STATE_DEPENDENT=4
9 if test -x /usr/bin/printf; then
10 ECHO=/usr/bin/printf
11 else
12 ECHO=echo
15 print_revision() {
16 echo "$1 v$2 (@PACKAGE@ @VERSION@)"
17 $ECHO "@WARRANTY@" | sed -e 's/\n/ /g'
20 support() {
21 $ECHO "@SUPPORT@" | sed -e 's/\n/ /g'