1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-23 04:43:37 +01:00

Detect if 'readelf' is present

This commit is contained in:
Alkorin 2018-01-08 16:26:00 +01:00
parent debd10b517
commit 8c8a8d35fd

View File

@ -115,6 +115,9 @@ img=''
if [ -z "$img" ]; then
pstatus yellow UNKNOWN "couldn't find your kernel image in /boot, if you used netboot, this is normal"
else
if ! which readelf >/dev/null 2>&1; then
pstatus yellow UNKNOWN "missing 'readelf' tool, please install it, usually it's in the 'binutils' package"
else
extract_vmlinux $img
if [ "$vmlinux_err" != "" ]; then
pstatus yellow UNKNOWN "couldn't extract your kernel from $img: $vmlinux_err"
@ -138,6 +141,7 @@ else
status=2
fi
fi
fi
fi
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "