mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-07 06:33:38 +01:00
Use 'readelf' instead of 'file' to detect kernel
This commit is contained in:
parent
26564206db
commit
1a14483c98
@ -35,7 +35,7 @@ pstatus()
|
|||||||
|
|
||||||
check_vmlinux()
|
check_vmlinux()
|
||||||
{
|
{
|
||||||
file "$1" 2>/dev/null | grep -q ELF || return 1
|
readelf -h $1 > /dev/null 2>&1 || return 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user