#!/usr/bin/env bash set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" case "$(uname -m)" in x86_64|amd64) BIN="$ROOT/bin/dragontcp-hybrid-server-linux-amd64" ;; aarch64|arm64) BIN="$ROOT/bin/dragontcp-hybrid-server-linux-arm64" ;; *) echo "Unsupported Linux architecture: $(uname -m)" >&2 exit 1 ;; esac if [[ ! -x "$BIN" ]]; then echo "DragonTCP server binary not found: $BIN" >&2 echo "Build it first with: ./build_core.sh" >&2 exit 1 fi USERS_FILE="${DRAGONTCP_USERS_FILE:-$ROOT/dragontcp-users.json}" exec "$BIN" --ssh-users "$USERS_FILE" --ssh-menu "$@"