mirror of
https://github.com/proot-me/proot.git
synced 2024-11-23 18:16:18 +00:00
b0afb6bbc0
Or glibc will complain about kernel too old...
11 lines
344 B
Bash
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$
|