/usr/src/blcr-0.8.5/tests/cr_targ2.sh is in blcr-dkms 0.8.5-2.1.
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 15 16 17 18 19 20 | #!/bin/sh
. ${cr_testsdir:-`dirname $0`}/shellinit
#
${cr_run} --omit --run -- ${cr_testsdir}/pause >/dev/null 2>/dev/null &
pid=$!
sleep 1
\rm -f context.$pid 2>/dev/null
trap "\rm -f context.$pid 2>/dev/null" 0
${cr_checkpoint} --clobber --quiet $pid
result=$?
if test $result = 0; then
: # OK
else
echo "Checkpoint unexpectedly failed with exit code $result" >&2
exit 1
fi
exec 2>/dev/null # Drop job control message(s)
kill $pid
wait $pid
exit 0
|