From f9ad300e7a9904683a655df77ee4701cbb6b7dfa Mon Sep 17 00:00:00 2001 From: Meliox Date: Tue, 9 Sep 2025 20:53:19 +0200 Subject: [PATCH] more regions --- pve-mod-gui-sensors.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index b2554a2..479d11e 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -121,7 +121,8 @@ function configure { SENSORS_DETECTED=false local sensorsOutput - # Collect lm-sensors output + #### Collect lm-sensors output #### + #region sensors collection if [ "$DEBUG_REMOTE" = true ]; then warn "Remote debugging is used. Sensor readings from dump file $DEBUG_JSON_FILE will be used." warn "Remote debugging is used. UPS readings from dump file $DEBUG_UPS_FILE will be used." @@ -136,6 +137,7 @@ function configure { if [ $? -ne 0 ]; then err "Sensor output error.\n\nCommand output:\n${sensorsOutput}\n\nExiting..." fi + #endregion sensors collection #### CPU #### #region cpu setup @@ -360,9 +362,11 @@ function configure { #endregion system info setup #### Final Check #### + #region final check if [ "$SENSORS_DETECTED" = false ] && [ "$ENABLE_UPS" = false ] && [ "$ENABLE_SYSTEM_INFO" = false ]; then err "No sensors detected, UPS or system info enabled. Exiting." fi + #endregion final check }