From ec137966be4235b05c1b50f17d69b52a20733ba7 Mon Sep 17 00:00:00 2001 From: Francois B Date: Sun, 3 Jun 2018 19:12:53 +0200 Subject: [PATCH] update microde fixed for 16.04 --- install_functions_ub1604.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_functions_ub1604.sh b/install_functions_ub1604.sh index 1a3ef8e..36af055 100644 --- a/install_functions_ub1604.sh +++ b/install_functions_ub1604.sh @@ -377,15 +377,16 @@ function updateMicrocode () { 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 + newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1` + printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version" elif [ "$amd" -gt "0" ]; then installPackage apt amd64-microcode + newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1` printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version" else printf "[INFO] No Intel/AMD CPU found" fi - newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1` printf "\n" }