Update microcode.sh

update get current microcode version
pull/3154/head
tteckster 6 months ago committed by GitHub
parent f396b6153f
commit cd1d295ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -30,7 +30,7 @@ msg_ok() { echo -e "${BFR} ${CM} ${GN}$1${CL}"; }
msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; } msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; }
header_info 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." [ -z "$current_microcode" ] && current_microcode="Not found."
intel() { intel() {

Loading…
Cancel
Save

Powered by BW's shoe-string budget.