/lib/bilibop/test is in bilibop-common 0.4.20.
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 21 22 23 24 25 | #!/bin/sh
set -e
# Test if the argument (file/directory/device) is on the same underlying
# device than the root filesystem; if this is the case and -q option is
# not used, then output something.
. /lib/bilibop/common.sh
get_udev_root
DISK="$(physical_hard_disk /)" || exit $?
if [ "${1}" = "-q" ]; then
quiet="true"
shift
else
quiet="false"
fi
[ -e "${1}" ] && [ "$(physical_hard_disk ${1})" = "${DISK}" ] || exit 1
if [ "${quiet}" = "false" ]; then
if [ -f /etc/bilibop/bilibop.conf ]; then
. /etc/bilibop/bilibop.conf
fi
echo ${BILIBOP_COMMON_BASENAME:-bilibop}
fi
|