From 7561791a0b119e51c4d0bb82dedb7c7fad069d9f Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Sun, 12 Oct 2025 19:29:39 +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 77d1326..57fbe1b 100644 --- a/usr/local/bin/custom/poe.sh +++ b/usr/local/bin/custom/poe.sh @@ -90,7 +90,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 - if ping -c 1 -W 2 "$rpi_ip" &> /dev/null; then + if ping -c 2 -W 1 "$rpi_ip" &> /dev/null; then echo "$(date '+%Y-%m-%d %H:%M:%S') $dev_name ist erreichbar!" >> "$LOGFILE" else echo "$(date '+%Y-%m-%d %H:%M:%S') $dev_name ist nicht erreichbar!" >> "$LOGFILE"