mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2025-01-08 18:30:26 +01:00
Detect if 'readelf' is present
This commit is contained in:
parent
debd10b517
commit
8c8a8d35fd
@ -114,6 +114,9 @@ img=''
|
|||||||
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && img=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
|
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && img=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
|
||||||
if [ -z "$img" ]; then
|
if [ -z "$img" ]; then
|
||||||
pstatus yellow UNKNOWN "couldn't find your kernel image in /boot, if you used netboot, this is normal"
|
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
|
else
|
||||||
extract_vmlinux $img
|
extract_vmlinux $img
|
||||||
if [ "$vmlinux_err" != "" ]; then
|
if [ "$vmlinux_err" != "" ]; then
|
||||||
@ -139,6 +142,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "
|
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "
|
||||||
[ "$status" = 0 ] && pstatus yellow UNKNOWN
|
[ "$status" = 0 ] && pstatus yellow UNKNOWN
|
||||||
|
Loading…
Reference in New Issue
Block a user