Update microcode.sh

check for Intel iucode-tool
This commit is contained in:
tteckster 2023-08-10 06:11:06 -04:00 committed by GitHub
parent 06229bedb6
commit a4c45beffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -51,9 +51,13 @@ msg_error() {
} }
intel() { intel() {
if ! apt -qq list iucode-tool >/dev/null 2>&1; then
msg_info "Installing iucode-tool: a tool for updating Intel processor microcode" msg_info "Installing iucode-tool: a tool for updating Intel processor microcode"
apt-get install -y iucode-tool &>/dev/null apt-get install -y iucode-tool &>/dev/null
msg_ok "Installed iucode-tool" 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" 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 wget -q http://ftp.debian.org/debian/pool/non-free-firmware/i/intel-microcode/intel-microcode_3.20230808.1_amd64.deb