From f360f189fdcd968c6895c38b3c359b9971ddc995 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sat, 24 Mar 2018 16:28:06 +0100 Subject: [PATCH] rpi_temp: remove dependency on 'bc' --- plugins/raspberry-pi/rpi_temp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/raspberry-pi/rpi_temp b/plugins/raspberry-pi/rpi_temp index 8eff2283..ffdd803e 100755 --- a/plugins/raspberry-pi/rpi_temp +++ b/plugins/raspberry-pi/rpi_temp @@ -28,6 +28,6 @@ fi # values TEMP_MILLI_C=$(cat /sys/class/thermal/thermal_zone0/temp) -echo thermal_zone0.value $( echo "scale=3; $TEMP_MILLI_C / 1000" | bc ) +echo "thermal_zone0.value $(echo "$TEMP_MILLI_C" | awk '{printf("%0.3f", $1 / 1000)}')" exit 0