diff options
author | Stéphane Lesimple <speed47_github@speed47.net> | 2018-01-09 18:47:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 18:47:25 +0100 |
commit | ab512687cfcc6856c0f6690097d6435c231bc30a (patch) | |
tree | 7bd988fd350befd52ae57fe61db2d4aab92a9707 | |
parent | a5aaa790a01c1ebe262d2e1dfe8a1da3780795f0 (diff) | |
parent | 45297b6f7de328c14ee192b1bd52bf8853648d09 (diff) | |
download | spectre-meltdown-checker-ab512687cfcc6856c0f6690097d6435c231bc30a.tar.lz spectre-meltdown-checker-ab512687cfcc6856c0f6690097d6435c231bc30a.tar.xz spectre-meltdown-checker-ab512687cfcc6856c0f6690097d6435c231bc30a.zip |
Merge pull request #38 from Alkorin/fixARM
Fix ARM checks
-rwxr-xr-x | spectre-meltdown-checker.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index aac9024..7d38263 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -111,11 +111,11 @@ is_cpu_vulnerable() variant1=0 variant2=1 variant3=1 - elif grep -qi 'CPU implementer : 0x41' /proc/cpuinfo; then + elif grep -qi 'CPU implementer\s*:\s*0x41' /proc/cpuinfo; then # ARM # reference: https://developer.arm.com/support/security-update - cpupart=$(awk '/CPU part :/ {print $4;exit}' /proc/cpuinfo) - cpuarch=$(awk '/CPU architecture:/ {print $3;exit}' /proc/cpuinfo) + cpupart=$(awk '/CPU part/ {print $4;exit}' /proc/cpuinfo) + cpuarch=$(awk '/CPU architecture/ {print $3;exit}' /proc/cpuinfo) if [ -n "$cpupart" -a -n "$cpuarch" ]; then # Cortex-R7 and Cortex-R8 are real-time and only used in medical devices or such # I can't find their CPU part number, but it's probably not that useful anyway |