Rename enableFanSpeed to ENABLE_FAN_SPEED
This commit is contained in:
parent
6ddd3b2663
commit
e50509ea73
@ -216,7 +216,7 @@ function configure {
|
|||||||
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 -Po '"[^"]*":\s*\{\s*"fan[0-9]*_input[^}]*' | sed -E 's/"([^"]*)":.*/\1/')"
|
msg "Detected fan speed sensors:\n$(echo $sensorsOutput | grep -Po '"[^"]*":\s*\{\s*"fan[0-9]*_input[^}]*' | sed -E 's/"([^"]*)":.*/\1/')"
|
||||||
enableFanSpeed=true
|
ENABLE_FAN_SPEED=true
|
||||||
SENSORS_DETECTED=true
|
SENSORS_DETECTED=true
|
||||||
# Prompt user for display zero speed fans
|
# Prompt user for display zero speed fans
|
||||||
local choiceDisplayZeroSpeedFans=$(ask "Do you wish to display fans reporting a speed of zero? If no, only active fans will be displayed. (Y/n)")
|
local choiceDisplayZeroSpeedFans=$(ask "Do you wish to display fans reporting a speed of zero? If no, only active fans will be displayed. (Y/n)")
|
||||||
@ -235,7 +235,7 @@ function configure {
|
|||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
warn "No fan speed sensors found."
|
warn "No fan speed sensors found."
|
||||||
enableFanSpeed=false
|
ENABLE_FAN_SPEED=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SENSORS_DETECTED = true ]; then
|
if [ $SENSORS_DETECTED = true ]; then
|
||||||
@ -668,7 +668,7 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
}" "$PVE_MANAGER_LIB_JS_FILE"
|
}" "$PVE_MANAGER_LIB_JS_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $enableFanSpeed = true ]; then
|
if [ $ENABLE_FAN_SPEED = true ]; then
|
||||||
# Add fan speeds display
|
# Add fan speeds display
|
||||||
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
sed -i "/^Ext.define('PVE.node.StatusView',/ {
|
||||||
:a;
|
:a;
|
||||||
@ -749,7 +749,7 @@ Ext.define('PVE.mod.TempHelper', {\n\
|
|||||||
lastItemId="thermalHdd"
|
lastItemId="thermalHdd"
|
||||||
elif [ $ENABLE_NVME_TEMP = true ]; then
|
elif [ $ENABLE_NVME_TEMP = true ]; then
|
||||||
lastItemId="thermalNvme"
|
lastItemId="thermalNvme"
|
||||||
elif [ $enableFanSpeed = true ]; then
|
elif [ $ENABLE_FAN_SPEED = true ]; then
|
||||||
lastItemId="speedFan"
|
lastItemId="speedFan"
|
||||||
else
|
else
|
||||||
lastItemId="thermalCpu"
|
lastItemId="thermalCpu"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user