update microde fixed for 16.04
This commit is contained in:
parent
d9b7709729
commit
ec137966be
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue