From b0a79d08a6985d9881820faeba5ce0104aac6353 Mon Sep 17 00:00:00 2001 From: shakasan Date: Thu, 17 May 2018 09:08:20 +0200 Subject: [PATCH] cpu microcode update fct fixed --- install_functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install_functions.sh b/install_functions.sh index 491ffa7..b4dc160 100644 --- a/install_functions.sh +++ b/install_functions.sh @@ -396,16 +396,20 @@ function installCardReaderMenu () { # update AMD/Intel CPU Microcode # function updateMicrocode () { + msg "CPU Microcode updating" oldMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1` intel=`cat /proc/cpuinfo | grep -i Intel | wc -l` amd=`cat /proc/cpuinfo | grep -i Amd | wc -l` if [ "$intel" -gt "0" ]; then + printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version" installPackage apt intel-microcode elif [ "$amd" -gt "0" ]; then installPackage apt amd64-microcode + printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version" + elif + printf "[INFO] No Intel/AMD CPU found" fi newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1` - printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version" printf "\n" }