diff --git a/package/emortal/autocore/files/cpuinfo b/package/emortal/autocore/files/cpuinfo index 71664cccb7..2355c38034 100755 --- a/package/emortal/autocore/files/cpuinfo +++ b/package/emortal/autocore/files/cpuinfo @@ -38,7 +38,9 @@ case "$DISTRIB_TARGET" in "bcm27xx"/*) cpu_temp="$(vcgencmd measure_temp | awk -F '=' '{print $2}' | awk -F "'" '{print $1}')°C" ;; "x86"/*) - if grep -q "GenuineIntel" "/proc/cpuinfo"; then + if [ -n "$(uci -q get "wechatpush.config.server_host")" ]; then + cpu_temp="$(/usr/share/wechatpush/wechatpush soc)°C" + elif grep -q "GenuineIntel" "/proc/cpuinfo"; then cpu_temp="$(sensors "coretemp-*" 2>"/dev/null" | grep -E "(Package id |Core )" | grep -Eo "\+[0-9.]*°C" | head -n1 | tr -d "+")" elif grep -q "AuthenticAMD" "/proc/cpuinfo"; then cpu_temp="$(sensors "k*temp-*" 2>"/dev/null" | awk '/Tdie/ {print $2}' | head -n1 | tr -d "+")"