mirror of
https://github.com/phantomptr/ps5upload.git
synced 2026-10-23 04:12:48 -05:00
Upload, install, convert and manage PS5 game packages over the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
611 B
Bash
Executable File
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"
|