mirror of
https://github.com/termux/proot.git
synced 2024-09-22 08:31:06 +00:00
8 lines
215 B
Bash
8 lines
215 B
Bash
if [ ! -x ${ROOTFS}/bin/readlink ] || [ -z `which realpath` ] || [ -z `which grep` ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
RESULT=$(realpath ${ROOTFS})
|
|
|
|
${PROOT} -b /proc -r ${ROOTFS} readlink /proc/self/root | grep ^${RESULT}$
|