From 305f3022f3f0e628368e7982f0d8b1572b70d316 Mon Sep 17 00:00:00 2001 From: Meliox Date: Sat, 6 Sep 2025 12:36:58 +0200 Subject: [PATCH] add nodes comments --- pve-mod-gui-sensors.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index 218c7de..0fba487 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -384,7 +384,12 @@ function install_mod { upsCmd="upsc \"$upsConnection\" 2>/dev/null" fi - sed -i "/my \$dinfo = df('\/', 1);/i\\\t\t\$res->{upsc} = \`$upsCmd\`;" "$NODES_PM_FILE" + # Insert UPS data collection before the disk info line + sed -i "/my \$dinfo = df('\/', 1);/i\\ + \\ + \t# Collect UPS status information\\ + \t\$res->{upsc} = \\\`$upsCmd\\\`;" "$NODES_PM_FILE" + msg "UPS output added to \"$NODES_PM_FILE\"." fi