/usr/src/blcr-0.8.5/tests/shellinit.in is in blcr-dkms 0.8.5-2.
This file is owned by root:root, with mode 0o644.
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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | # Common setup code to be sourced by shell scripts
# Initializes:
# cr_testsdir location of the tests
# cr_libpath text to optionally prepend to LD_LIBRARY_PATH
# cr_run path of the cr_run utility
# cr_checkpoint path of the cr_checkpoint utility
# cr_restart path of the cr_restart utility
# cr_pwd PWD_PROG found by configure, or "pwd"
for cr_testsdir in ${cr_testsdir} `dirname $0` .; do
test -f ${cr_testsdir}/shellinit && break
done
test -f ${cr_testsdir}/shellinit || exit 1
export cr_testsdir
#
cr_bindir=${cr_testsdir}/../bin
if expr "$cr_bindir" : / >/dev/null; then
: # OK
else
cr_bindir="`pwd`/${cr_bindir}"
fi
#
@CR_INSTALLED_LIBCR_TRUE@cr_libpath=
@CR_INSTALLED_LIBCR_FALSE@cr_libpath=@TOP_BUILDDIR@/libcr/.libs:
export cr_libpath
#
@CR_ENABLE_SHARED_TRUE@cr_run=${cr_run:-${cr_bindir}/cr_run}
@CR_ENABLE_SHARED_FALSE@cr_run=env
export cr_run
#
cr_checkpoint=${cr_checkpoint:-${cr_bindir}/cr_checkpoint}
export cr_checkpoint
#
cr_restart=${cr_restart:-${cr_bindir}/cr_restart}
export cr_restart
#
cr_pwd="@PWD_PROG@"
if test ! -x "$cr_pwd" -o "`$cr_pwd 2>&1 > /dev/null`" != "" ; then
cr_pwd=pwd
fi
export cr_pwd
#
unset cr_bindir
|