#!/bin/sh
temp() {
echo $(sysctl -n $1 | cut -d\ -f 1)°C
}
rpm() {
echo $(sysctl -n $1 | cut -d\ -f 1)RPM
}
echo "$(temp hw.sensors.aplsmc0.temp0) $(temp hw.sensors.aplsmc0.temp1) $(temp hw.sensors.aplsmc0.temp2) $(temp hw.sensors.aplsmc0.temp3) $(rpm hw.sensors.aplsmc0.fan0)"