mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(unified): add 100% wired Radxa/G29 hub (HT, cockpit OSD, CRSF telemetry) & update README
This commit is contained in:
1 parent
f01bf1aeb3
commit
51a5d0c7ad
10 files changed
+1012
-26
No files matched your search
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env bash
|
||||
# Déploie et active le relais bidirectionnel RP2350 <-> UDP usb0 (:14552)
|
||||
# sur la Radxa Zero 3W (192.168.1.1) pour le mode Tout-en-un 100% filaire.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
RADXA_HOST="${1:-root@192.168.1.1}"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
echo "=== Déploiement du relais Tout-en-un G29/CRSF sur ${RADXA_HOST} ==="
|
||||
|
||||
scp "${SCRIPT_DIR}/radxa_g29_relay.py" "${RADXA_HOST}:/usr/local/bin/radxa_g29_relay.py"
|
||||
|
||||
ssh "${RADXA_HOST}" bash -s << 'EOF'
|
||||
set -euo pipefail
|
||||
chmod +x /usr/local/bin/radxa_g29_relay.py
|
||||
|
||||
cat << 'UNIT' > /etc/systemd/system/steamframe-g29-relay.service
|
||||
[Unit]
|
||||
Description=SteamFrame FPV Unified G29/CRSF <-> USB0 UDP Relay
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /usr/local/bin/radxa_g29_relay.py
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
UNIT
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable steamframe-g29-relay.service
|
||||
systemctl restart steamframe-g29-relay.service
|
||||
systemctl status --no-pager steamframe-g29-relay.service || true
|
||||
EOF
|
||||
|
||||
echo "[+] Relais Tout-en-un installé et actif sur ${RADXA_HOST}:14552 !"
|
||||
Reference in new issue
Block a user