1
0
mirror of https://github.com/proot-me/proot.git synced 2024-11-23 18:16:18 +00:00
proot/test/test-e99993c8.sh
Yichao Yu b0afb6bbc0
Make sure not to fake too old an kernel release (#281)
Or glibc will complain about kernel too old...
2021-10-01 10:54:43 -04:00

11 lines
344 B
Bash

if [ -z `which uname` ] || [ -z `which grep` ]; then
exit 125;
fi
kver=$(uname -r)
LONG_RELEASE=0123456789012345678901234567890123456789012345678901234567890123456789
${PROOT} -k $kver-3.33.333 uname -r | grep ^.*-3\.33\.333$
${PROOT} -k ${LONG_RELEASE} uname -r | grep ^0123456789012345678901234567890123456789012345678901234567890123$