Commit 23ff42081d20fe3798104966d95661a952b833b6

Thomas de Grivel 2021-03-02T15:17:53

m700

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/bin/status-m700 b/bin/status-m700
new file mode 100755
index 0000000..ae2acb0
--- /dev/null
+++ b/bin/status-m700
@@ -0,0 +1,2 @@
+#!/bin/sh
+xsetroot -name "$(hostname) $(~/bin/egress_interface) $(~/bin/host-ip) $(~/bin/nwid) $(~/bin/load) $(~/bin/temperature-m700) $(date)"
diff --git a/bin/temperature-m700 b/bin/temperature-m700
new file mode 100755
index 0000000..1d54aa3
--- /dev/null
+++ b/bin/temperature-m700
@@ -0,0 +1,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"