This file is indexed.

/usr/lib/fai/check_status is in fai-client 4.0.8~deb7u1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#! /bin/sh

# check_status <command run> <its result status>

cmd=$1
st=$2

if [ $st -eq 0 ]; then
   res="OK."
else
   res="FAILED with exit code $st."
fi
# put result in the log file
printf "%-20s $res\n" $cmd | tee -a $LOGDIR/status.log