From 466f3615ed4621fea5825d16cfe4d1105c60b3b0 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Sun, 12 Oct 2025 15:09:22 +0200 Subject: [PATCH] usr/local/bin/custom/poe.sh aktualisiert --- usr/local/bin/custom/poe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/custom/poe.sh b/usr/local/bin/custom/poe.sh index 30f630a..77d1326 100644 --- a/usr/local/bin/custom/poe.sh +++ b/usr/local/bin/custom/poe.sh @@ -96,7 +96,7 @@ while true; do echo "$(date '+%Y-%m-%d %H:%M:%S') $dev_name ist nicht erreichbar!" >> "$LOGFILE" # Nur PoE neu starten, wenn Port vorhanden ist - if [ -n "$switch_port" ]; then + if [ -n "$switch_port" ] && [ "$switch_port" != "None" ]; then disable_poe "$switch_ip" "$switch_port" "$switch_user" "$switch_pass" echo "$(date '+%Y-%m-%d %H:%M:%S') $dev_name PoE auf Port $switch_port am Switch $switch_hostname deaktiviert." >> "$LOGFILE" sleep 2