also run hddtemp over my nvme drives

This commit is contained in:
Tim Connors 2022-12-07 12:43:13 +11:00
parent 0cff0987e5
commit f2fd624c74

View file

@ -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) {