mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "0d6aac12018539798ac7c98df750f58e874655ea" and "06229bedb6ab86e25c4c85c00fbc78d528cb4521" have entirely different histories.
0d6aac1201
...
06229bedb6
|
@ -4,7 +4,15 @@
|
|||
# License: MIT
|
||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||
|
||||
function header_info {
|
||||
clear
|
||||
while true; do
|
||||
read -p "Install the latest Processor Microcode (y/n)?" yn
|
||||
case $yn in
|
||||
[Yy]*) break ;;
|
||||
[Nn]*) exit ;;
|
||||
*) echo "Please answer yes or no." ;;
|
||||
esac
|
||||
done
|
||||
clear
|
||||
cat <<"EOF"
|
||||
____ __ ____ __
|
||||
|
@ -14,7 +22,6 @@ cat <<"EOF"
|
|||
/_/ /_/ \____/\___/\___/____/____/\____/_/ /_/ /_/_/\___/_/ \____/\___/\____/\__,_/\___/
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
RD=$(echo "\033[01;31m")
|
||||
YW=$(echo "\033[33m")
|
||||
|
@ -43,31 +50,10 @@ msg_error() {
|
|||
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
||||
}
|
||||
|
||||
header_info
|
||||
current_microcode=$(dmesg | grep -o 'microcode updated early to revision [^,]*, date = [0-9\-]*')
|
||||
while true; do
|
||||
if [ -z "${current_microcode}" ]; then
|
||||
msg_error "Microcode update information not found."
|
||||
else
|
||||
msg_ok "Current ${current_microcode}"
|
||||
fi
|
||||
read -p "Install the latest Processor Microcode (y/n)?" yn
|
||||
case $yn in
|
||||
[Yy]*) break ;;
|
||||
[Nn]*) exit ;;
|
||||
*) echo "Please answer yes or no." ;;
|
||||
esac
|
||||
done
|
||||
header_info
|
||||
|
||||
intel() {
|
||||
if ! apt -qq list iucode-tool >/dev/null 2>&1; then
|
||||
msg_info "Installing iucode-tool: a tool for updating Intel processor microcode"
|
||||
apt-get install -y iucode-tool &>/dev/null
|
||||
msg_ok "Installed iucode-tool"
|
||||
else
|
||||
msg_ok "Intel iucode-tool is already installed"
|
||||
fi
|
||||
|
||||
msg_info "Downloading the latest Intel Processor Microcode Package for Linux"
|
||||
wget -q http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/intel-microcode_3.20230808.1_amd64.deb
|
||||
|
|
Loading…
Reference in New Issue