aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Lesimple <speed47_github@speed47.net>2018-01-07 18:49:15 +0100
committerStéphane Lesimple <speed47_github@speed47.net>2018-01-07 18:49:15 +0100
commit64eb1d005c29996896b9fde2461f34a1e1a4ec71 (patch)
treed1973f3600ece6b212a4f5c3db8d746b3ef62f74
parentbffda8b3e79e17b93ebda07a7ff181e2bcfcb5fb (diff)
downloadspectre-meltdown-checker-64eb1d005c29996896b9fde2461f34a1e1a4ec71.tar.lz
spectre-meltdown-checker-64eb1d005c29996896b9fde2461f34a1e1a4ec71.tar.xz
spectre-meltdown-checker-64eb1d005c29996896b9fde2461f34a1e1a4ec71.zip
add couple missing elses
-rwxr-xr-xspectre-meltdown-checker.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh
index 37138a5..4f80c18 100755
--- a/spectre-meltdown-checker.sh
+++ b/spectre-meltdown-checker.sh
@@ -1,7 +1,7 @@
#! /bin/sh
# Spectre & Meltdown checker
# Stephane Lesimple
-VERSION=0.06
+VERSION=0.07
pstatus()
{
@@ -178,6 +178,8 @@ elif [ -e /boot/config-$(uname -r) ]; then
else
pstatus red NO
fi
+else
+ pstatus yellow UNKNOWN "couldn't read your kernel configuration"
fi
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "
@@ -217,7 +219,7 @@ elif [ -e /boot/System.map-$(uname -r) ]; then
pstatus red NO
fi
else
- pstatus yellow UNKNOWN
+ pstatus yellow UNKNOWN "couldn't read your kernel configuration"
fi
/bin/echo -n "* PTI enabled and active: "