From 967967e98f81950c1e902a465cb186fa0ad20b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Pe=C5=A1ek=20=28Kof=29?= Date: Thu, 5 Nov 2026 20:50:23 +0100 Subject: [PATCH] fix(synergy): ignore non-zero exit code of synergyc --help in pipefail --- fleet-beacon | 20 +++++++++++++++++++- synergy-client-connect | 4 ++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/fleet-beacon b/fleet-beacon index 19572c8..5514c78 100755 --- a/fleet-beacon +++ b/fleet-beacon @@ -17,7 +17,25 @@ import glob import urllib.request PORT = 9850 -TARGETS = ["", "192.168.1.255", "192.168.1.100", "192.168.1.102", "10.0.0.255", "10.0.0.18", "10.0.0.14", "91.139.118.43", "192.168.43.255", "192.168.43.1", "127.0.0.1"] +TARGETS = [ + "", + "192.168.1.255", + "192.168.1.100", # t520 (Ethernet) + "192.168.1.102", # t520 (WiFi) + "192.168.1.104", # bazina (Debian 13) + "192.168.1.101", # boxC (RPi storage) + "192.168.1.105", # penguin (Chromebook) + "192.168.1.103", # phone (Android) + "10.39.9.255", # WireGuard VPN Broadcast + "10.39.9.1", # boxC VPN + "10.0.0.255", + "10.0.0.18", + "10.0.0.14", + "91.139.118.43", + "192.168.43.255", + "192.168.43.1", + "127.0.0.1" +] def get_hostname(): if os.path.exists("/data/data/com.termux") or "TERMUX_VERSION" in os.environ: diff --git a/synergy-client-connect b/synergy-client-connect index 71a1765..7748a9a 100755 --- a/synergy-client-connect +++ b/synergy-client-connect @@ -24,9 +24,9 @@ find_active_server() { return 1 } -# Determine crypto flag based on synergyc build +# Determine crypto flag based on synergyc build (note: synergyc --help exits with code 3) CRYPTO_FLAG="" -if /usr/local/bin/synergyc --help 2>&1 | grep -q -- '--disable-crypto'; then +if (/usr/local/bin/synergyc --help 2>&1 || true) | grep -q -- '--disable-crypto'; then CRYPTO_FLAG="--disable-crypto" fi