From cd1d295ae1e87d3c5b0f3bd87143167fe346bb3c Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 6 Jun 2024 09:37:19 -0400 Subject: [PATCH] Update microcode.sh update get current microcode version --- misc/microcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/microcode.sh b/misc/microcode.sh index 083e9c89..44ad9b54 100644 --- a/misc/microcode.sh +++ b/misc/microcode.sh @@ -30,7 +30,7 @@ msg_ok() { echo -e "${BFR} ${CM} ${GN}$1${CL}"; } msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; } header_info -current_microcode=$(journalctl -k | grep -oP "microcode: updated early: [^ ]+ -> \K[^,]+, date = [^ ]+" | head -n 1) +current_microcode=$(journalctl -k | grep -i 'microcode: Current revision:' | grep -oP 'Current revision: \K0x[0-9a-f]+') [ -z "$current_microcode" ] && current_microcode="Not found." intel() {