From 676f8cf998a387045f79607b4bbbc34a5397f55e Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 14 Jun 2023 16:52:20 +0200 Subject: up --- .local/bin/status/sb-temp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.local/bin/status/sb-temp') diff --git a/.local/bin/status/sb-temp b/.local/bin/status/sb-temp index 1d71bb0..dc2ad35 100755 --- a/.local/bin/status/sb-temp +++ b/.local/bin/status/sb-temp @@ -1,3 +1,7 @@ #!/bin/sh -echo -n "" $(sysctl -n dev.cpu.0.temperature | cut -d '.' -f1)"°C" +case $(hostname -s) in + mother) ;; + po-rbo) cat /sys/class/hwmon/hwmon5/temp1_input | awk '{printf (" %3.1f°C", ($1 / 1000))}' ;; + mars) echo -n "" $(sysctl -n dev.cpu.0.temperature | cut -d '.' -f1)"°C" ;; +esac -- cgit v1.2.3