From f2fd624c74935b5e11057289166945cd0ef299c6 Mon Sep 17 00:00:00 2001 From: Tim Connors Date: Wed, 7 Dec 2022 12:43:13 +1100 Subject: [PATCH] also run hddtemp over my nvme drives --- fan-speed-control.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fan-speed-control.pl b/fan-speed-control.pl index 8a8bfcf..ccc24ef 100755 --- a/fan-speed-control.pl +++ b/fan-speed-control.pl @@ -201,7 +201,7 @@ while () { # could just be a simple pipe, but hddtemp has a strong posibility # to be stuck in a D state, and hold STDERR open despite a kill # -9, so instead just send it to a tempfile, and read from that tempfile - system("timeout -k 1 20 hddtemp /dev/sd? | grep -v 'not available' > $tempfilename"); + system("timeout -k 1 20 hddtemp /dev/sd? /dev/nvme?n? | grep -v 'not available' > $tempfilename"); @hddtemps=`cat < $tempfilename`; } if (!@ambient_ipmitemps) {