mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
Update autocore.patch
This commit is contained in:
parent
cf1f58050b
commit
1259b5ea75
4
.github/diy/patches/autocore.patch
vendored
4
.github/diy/patches/autocore.patch
vendored
@ -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-)"
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user