diff --git a/src/freedombone-installer b/src/freedombone-installer index 7fdc5e24de6cd2b7aeb5da1509e8499ab8957e85..54e8f5266e0ef1d5296172c623366dd64bf50a27 100755 --- a/src/freedombone-installer +++ b/src/freedombone-installer @@ -1504,9 +1504,11 @@ function update_system_monitor { used_memory_percent=$((used_memory * 100 / total_memory)) cpu_temperature=0 - cpu_temp=$(cat /sys/class/thermal/thermal_zone*/temp | head -n 1) - if [ "$cpu_temp" ]; then - cpu_temperature=$((cpu_temp / 1000)) + if [ -f /sys/class/thermal/thermal_zone0/temp ]; then + cpu_temp=$(cat /sys/class/thermal/thermal_zone*/temp | head -n 1) + if [ "$cpu_temp" ]; then + cpu_temperature=$((cpu_temp / 1000)) + fi fi test_drive=/dev/sda1 diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index 47ff1b95fc018ce7ca1ba206cd6d3202b1a820d2..d2c3bc24297c8d1f3e82a260def4d5c2f46966bc 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -753,9 +753,11 @@ function webadmin_update_system_monitor { used_memory_percent=$((used_memory * 100 / total_memory)) cpu_temperature=0 - cpu_temp=$(cat /sys/class/thermal/thermal_zone*/temp | head -n 1) - if [ "$cpu_temp" ]; then - cpu_temperature=$((cpu_temp / 1000)) + if [ -f /sys/class/thermal/thermal_zone0/temp ]; then + cpu_temp=$(cat /sys/class/thermal/thermal_zone*/temp | head -n 1) + if [ "$cpu_temp" ]; then + cpu_temperature=$((cpu_temp / 1000)) + fi fi test_drive=/dev/sda1