Add info on nvme and hdd/ssd
This commit is contained in:
parent
a89ad7ad61
commit
28156addfe
@ -71,6 +71,7 @@ function configure {
|
|||||||
if (lsmod | grep -wq "drivetemp"); then
|
if (lsmod | grep -wq "drivetemp"); then
|
||||||
# Check if SDD/HDD data is available
|
# Check if SDD/HDD data is available
|
||||||
if (echo "$sensorOutput" | grep -q "drivetemp-scsi-" ); then
|
if (echo "$sensorOutput" | grep -q "drivetemp-scsi-" ); then
|
||||||
|
echo "Found SSD/HDD temp sensor: $(echo "$sensorOutput" | grep -o '"drivetemp-scsi[^"]*"'| sed 's/"//g')"
|
||||||
enableHddSsdTemp=true
|
enableHddSsdTemp=true
|
||||||
else
|
else
|
||||||
enableHddSsdTemp=false
|
enableHddSsdTemp=false
|
||||||
@ -81,6 +82,7 @@ function configure {
|
|||||||
|
|
||||||
# Check if NVME data is available
|
# Check if NVME data is available
|
||||||
if (echo "$sensorOutput" | grep -q "nvme-" ); then
|
if (echo "$sensorOutput" | grep -q "nvme-" ); then
|
||||||
|
echo "Found nvme temp sensor: $(echo "$sensorOutput" | grep -o '"nvme[^"]*"'| sed 's/"//g')"
|
||||||
enableNvmeTemp=true
|
enableNvmeTemp=true
|
||||||
else
|
else
|
||||||
enableNvmeTemp=false
|
enableNvmeTemp=false
|
||||||
@ -128,6 +130,7 @@ function configure {
|
|||||||
if [[ -z "$cpuItemPrefix" || -z "$cpuItemPrefix" ]]; then
|
if [[ -z "$cpuItemPrefix" || -z "$cpuItemPrefix" ]]; then
|
||||||
echo "Warning: The cpu configuration is not set. Temps will not be available"
|
echo "Warning: The cpu configuration is not set. Temps will not be available"
|
||||||
fi
|
fi
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to install the modification
|
# Function to install the modification
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user