allow remote hdd debug
This commit is contained in:
parent
0eabae4f40
commit
02b335f0a2
@ -169,8 +169,21 @@ function configure {
|
||||
ENABLE_RAM_TEMP=false
|
||||
fi
|
||||
|
||||
# Check if HDD/SSD data is installed
|
||||
# Check if HDD/SSD data is installed
|
||||
msg "\nDetecting support for HDD/SDD temperature sensors..."
|
||||
if [ $DEBUG_REMOTE = true ]; then
|
||||
# Check if debug file contains HDD/SSD data
|
||||
if (echo "$sensorsOutput" | grep -q "drivetemp-scsi-"); then
|
||||
msg "Detected sensors:\n$(echo "$sensorsOutput" | grep -o '"drivetemp-scsi[^"]*"' | sed 's/"//g')"
|
||||
ENABLE_HDD_TEMP=true
|
||||
SENSORS_DETECTED=true
|
||||
else
|
||||
warn "No HDD/SSD temperature sensors found in debug data."
|
||||
ENABLE_HDD_TEMP=false
|
||||
fi
|
||||
else
|
||||
# Check if kernel module is loaded
|
||||
if (lsmod | grep -wq "drivetemp"); then
|
||||
# Check if SDD/HDD data is available
|
||||
if (echo "$sensorsOutput" | grep -q "drivetemp-scsi-"); then
|
||||
@ -185,6 +198,7 @@ function configure {
|
||||
warn "No HDD/SSD temperature sensors found."
|
||||
ENABLE_HDD_TEMP=false
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if NVMe data is available
|
||||
msg "\nDetecting support for NVMe temperature sensors..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user