From a4c45beffb404f24bb18ca286fe35e6c7952feba Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 10 Aug 2023 06:11:06 -0400 Subject: [PATCH] Update microcode.sh check for Intel iucode-tool --- misc/microcode.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/misc/microcode.sh b/misc/microcode.sh index 05ae3f7b..3227ce77 100644 --- a/misc/microcode.sh +++ b/misc/microcode.sh @@ -51,9 +51,13 @@ msg_error() { } intel() { - 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" + 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