Update autocore.patch

This commit is contained in:
kiddin9 2026-03-07 12:55:23 +08:00 committed by GitHub
parent cf1f58050b
commit 1259b5ea75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,9 +9,9 @@
case "$DISTRIB_TARGET" in
"x86"/*)
@@ -45,6 +45,7 @@ case "$DISTRIB_TARGET" in
@@ -43,6 +43,7 @@ case "$DISTRIB_TARGET" in
elif grep -q "AuthenticAMD" "/proc/cpuinfo"; then
cpu_temp="$(sensors "k*temp-*" 2>"/dev/null" | awk '/Tdie/ {print $2}' | head -n1 | tr -d "+")"
cpu_temp="$(sensors "k10temp-*" 2>"/dev/null" | awk '/Tctl|Tdie/ {print $2}' | head -n1 | tr -d "+")"
fi
+ [ -n "${cpu_temp}" ] || cpu_temp="$(sensors 2>/dev/null | grep 'Core 0' | cut -c12-)"
;;