mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 18:27:52 +08:00
Update autocore.patch
This commit is contained in:
1 parent
cf1f58050b
commit
1259b5ea75
1 file changed
+2
-2
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
case "$DISTRIB_TARGET" in
|
case "$DISTRIB_TARGET" in
|
||||||
"x86"/*)
|
"x86"/*)
|
||||||
@@ -45,6 +45,7 @@ case "$DISTRIB_TARGET" in
|
@@ -43,6 +43,7 @@ case "$DISTRIB_TARGET" in
|
||||||
elif grep -q "AuthenticAMD" "/proc/cpuinfo"; then
|
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
|
fi
|
||||||
+ [ -n "${cpu_temp}" ] || cpu_temp="$(sensors 2>/dev/null | grep 'Core 0' | cut -c12-)"
|
+ [ -n "${cpu_temp}" ] || cpu_temp="$(sensors 2>/dev/null | grep 'Core 0' | cut -c12-)"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in new issue
Block a user