Commit f833f7d33d9090e817f331d808b8d96c11c0a3fc

Thomas de Grivel 2020-05-28T10:03:19

temperature for T495

1
2
3
4
5
6
7
8
9
10
11
diff --git a/bin/temperature b/bin/temperature
index 1ff05cd..23f79c8 100755
--- a/bin/temperature
+++ b/bin/temperature
@@ -1,4 +1,4 @@
 #!/bin/sh
-CPUTEMP=$(sysctl -n hw.sensors.cpu0.temp0 | cut -d\  -f 1)
-MBTEMP=$(sysctl -n hw.sensors.pchtemp0.temp0 | cut -d\  -f 1)
+CPUTEMP=$(sysctl -n hw.sensors.acpithinkpad0.temp0 | cut -d\  -f 1)
+MBTEMP=$(sysctl -n hw.sensors.ksmn0.temp0 | cut -d\  -f 1)
 echo "${CPUTEMP}°C ${MBTEMP}°C"