mirror of
https://github.com/proot-me/proot.git
synced 2025-08-28 16:43:49 +02:00
On ARM the glibc decodes the hwcap into strings similar to that from /proc/cpuinfo. This means that an value of zero prints an empty string.
15 lines
459 B
Bash
15 lines
459 B
Bash
if [ ! -x /bin/true ] || [ -z `which grep` ] || [ -z `which env` ] || [ -z `which mcookie`] || [ -z `which rm` ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
if [ ! -e $CARE ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
TMP=/tmp/$(mcookie)
|
|
|
|
${CARE} -o ${TMP}/ env LD_SHOW_AUXV=1 true | grep '^AT_HWCAP:[[:space:]]*0\?$'
|
|
${TMP}/re-execute.sh | grep '^AT_HWCAP:[[:space:]]*0\?$'
|
|
${TMP}/re-execute.sh env LD_SHOW_AUXV=1 true | grep '^AT_HWCAP:[[:space:]]*0\?$'
|
|
|
|
rm -fr ${TMP}
|