fix: adb ssh on mac (#37298)

* fix: adb ssh on mac

* revert
This commit is contained in:
Trey Moen
2026-02-20 23:38:51 -07:00
committed by GitHub
parent 4e8a4f87f4
commit 468a50b6f6
+3 -7
View File
@@ -2,7 +2,9 @@
set -euo pipefail
# Forward all openpilot service ports
mapfile -t SERVICE_PORTS < <(python3 - <<'PY'
while IFS=' ' read -r name port; do
adb forward "tcp:${port}" "tcp:${port}" > /dev/null
done < <(python3 - <<'PY'
from cereal.services import SERVICE_LIST
FNV_PRIME = 0x100000001b3
@@ -29,12 +31,6 @@ for name, port in sorted(ports):
PY
)
for entry in "${SERVICE_PORTS[@]}"; do
name="${entry% *}"
port="${entry##* }"
adb forward "tcp:${port}" "tcp:${port}" > /dev/null
done
# Forward SSH port first for interactive shell access.
adb forward tcp:2222 tcp:22