#!/bin/bash # RealSense D4xx uses uvcvideo via the librealsense2 backend, so no driver # unbind is needed — unlike the Nuwa HP60C entrypoint. # # librealsense expects the udev rules to be present on the host. The rules # package is installed inside the image too (librealsense2-udev-rules) but # udev itself runs on the host; if the camera is not visible to lsusb the # host udev rules are likely missing or stale. set -e PORT=${API_PORT:-8878} echo "[entrypoint] Starting RealSense D4xx API server on port ${PORT}..." exec python3 -m uvicorn src.backend.main:app --host 0.0.0.0 --port "${PORT}"