diff options
author | Stéphane Lesimple <speed47_github@speed47.net> | 2018-02-02 11:27:04 +0100 |
---|---|---|
committer | Stéphane Lesimple <speed47_github@speed47.net> | 2018-02-02 11:27:04 +0100 |
commit | 5d6102a00ea3785b8f990ee63a72d3812b6bedab (patch) | |
tree | eacd2322fbddde5baebc03c52f6896996ccf0864 | |
parent | a2dfca671e05e9ef365128d45841d5958b7a3e0b (diff) | |
download | spectre-meltdown-checker-5d6102a00ea3785b8f990ee63a72d3812b6bedab.tar.lz spectre-meltdown-checker-5d6102a00ea3785b8f990ee63a72d3812b6bedab.tar.xz spectre-meltdown-checker-5d6102a00ea3785b8f990ee63a72d3812b6bedab.zip |
enh: show kernel version in offline mode
-rwxr-xr-x | spectre-meltdown-checker.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index ba4ccef..fe5c7e1 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -996,13 +996,15 @@ if [ -z "$vmlinux" ] || [ ! -r "$vmlinux" ]; then else vmlinux_version=$(strings "$vmlinux" 2>/dev/null | grep '^Linux version ' | head -1) if [ -n "$vmlinux_version" ]; then - _verbose "Kernel image is \033[35m$vmlinux_version" # in live mode, check if the img we found is the correct one if [ "$opt_live" = 1 ]; then + _verbose "Kernel image is \033[35m$vmlinux_version" if ! echo "$vmlinux_version" | grep -qF "$(uname -r)" || \ ! echo "$vmlinux_version" | grep -qF "$(uname -v)"; then _warn "Possible disrepancy between your running kernel and the image we found ($opt_kernel), results might be incorrect" fi + else + _info "Kernel image is \033[35m$vmlinux_version" fi fi fi |