diff --git a/package/lean/autocore/files/arm/cpuinfo b/package/lean/autocore/files/arm/cpuinfo index 3b5c115e69..19d76b82c4 100755 --- a/package/lean/autocore/files/arm/cpuinfo +++ b/package/lean/autocore/files/arm/cpuinfo @@ -23,7 +23,7 @@ elif grep -q "ipq40xx" "/etc/openwrt_release"; then cpu_temp="$(sensors | grep -Eo '\+[0-9]+.+C' | sed ':a;N;$!ba;s/\n/ /g;s/+//g')" else [ -e "/sys/class/thermal/thermal_zone0/temp" ] && \ - cpu_temp="$(awk "BEGIN{printf (\"%.1f\n\",$(cat "/sys/class/thermal/thermal_zone0/temp")/1000)}")°C" + cpu_temp="$(awk '{printf("%.1f°C", $0 / 1000)}' /sys/class/thermal/thermal_zone0/temp)" fi if [ -z "${cpu_freq}" ] && [ -z "${cpu_temp}" ]; then