Files
ps5upload/tests/lab/hello-runtime.sh
T
phantomptrandClaude Opus 5.5 c14782944d PS5Upload v5.35.0
Upload, install, convert and manage PS5 game packages over the network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 04:31:13 -07:00

19 lines
611 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
PS5_IP="${PS5_IP:-192.168.137.2}"
# HELLO + STATUS go to the mgmt port (9114), not the transfer port
# (9113). The smoke script and ad-hoc invocations both expect this.
# Override with RUNTIME_PORT=9113 to talk to the transfer port
# directly, but that path doesn't speak HELLO and will return
# `wrong_port`.
RUNTIME_PORT="${RUNTIME_PORT:-9114}"
if ! command -v python3 >/dev/null 2>&1; then
echo "python3 is required" >&2
exit 1
fi
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
python3 "$ROOT_DIR/lab/ftx2_control.py" hello "$PS5_IP" "$RUNTIME_PORT"