print real fan names during config

This commit is contained in:
Meliox 2024-06-16 13:39:48 +02:00
parent c437edfc5c
commit 47335ab0d1

View File

@ -207,7 +207,7 @@ function configure {
# Look for fan speeds # Look for fan speeds
msg "\nDetecting support for fan speed readings..." msg "\nDetecting support for fan speed readings..."
if (echo "$sensorsOutput" | grep -q "fan[0-9]*_input"); then if (echo "$sensorsOutput" | grep -q "fan[0-9]*_input"); then
msg "Detected fan speed sensors:\n$(echo "$sensorsOutput" | grep -o 'fan[0-9]*_input[^"]*')" msg "Detected fan speed sensors:\n$(echo "$sensorsOutput" | grep -Po '"[^"]*":\{\s*"fan[0-9]*_input[^}]*' | sed -E 's/"([^"]*)":.*/\1/')"
enableFanSpeed=true enableFanSpeed=true
sensorsDetected=true sensorsDetected=true
else else