Hash : 23ff4208 Author : Thomas de Grivel Date : 2021-03-02T15:17:53
Download
1 2 3 4 5
#!/bin/sh CPUTEMP=$(sysctl -n hw.sensors.cpu0.temp0 | cut -d\ -f 1) MBTEMP0=$(sysctl -n hw.sensors.acpitz0.temp0 | cut -d\ -f 1) MBTEMP1=$(sysctl -n hw.sensors.acpitz1.temp0 | cut -d\ -f 1) echo "${CPUTEMP}°C ${MBTEMP0}°C ${MBTEMP1}°C"