From 5709f32fcdef48b086c04a172accc012820699a9 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Sun, 12 Jul 2026 08:43:32 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A4nderung=20trennzeichen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/bin/custom/poe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/bin/custom/poe.sh b/usr/local/bin/custom/poe.sh index fbd600d..a0c5f1e 100644 --- a/usr/local/bin/custom/poe.sh +++ b/usr/local/bin/custom/poe.sh @@ -87,7 +87,7 @@ EOF function manual_restart() { local target_mac="$1" - python3 /srv/poe_manager/generate_ips.py | while IFS=: read -r rpi_ip dev_name switch_ip switch_hostname switch_port switch_user switch_pass mac; do + python3 /srv/poe_manager/generate_ips.py | while IFS='|' read -r rpi_ip dev_name switch_ip switch_hostname switch_port switch_user switch_pass mac; do if [[ "$mac" != "$target_mac" ]]; then continue fi @@ -119,7 +119,7 @@ echo "" > "$LOGFILE" while true; do echo "--------------------------------------------------------------------" >> "$LOGFILE" - python3 /srv/poe_manager/generate_ips.py | while IFS=: read -r rpi_ip dev_name switch_ip switch_hostname switch_port switch_user switch_pass; do + python3 /srv/poe_manager/generate_ips.py | while IFS='|' read -r rpi_ip dev_name switch_ip switch_hostname switch_port switch_user switch_pass; do if ping -c 1 -W 2 "$rpi_ip" &> /dev/null; then echo "$(date '+%Y-%m-%d %H:%M:%S') $dev_name ist erreichbar!" >> "$LOGFILE" else