#!/usr/bin/env bash
# scripts/manual/usb-reset.sh - trigger USB reset RPC on the server
# Manual: operator recovery action; not part of CI.
set -euo pipefail

SCRIPT_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
PROTO_DIR="${SCRIPT_DIR}/../../common/proto"

grpcurl \
    -plaintext \
    -import-path "${PROTO_DIR}" \
    -proto lesavka.proto \
    -d '{}' \
    38.28.125.112:50051 \
    lesavka.Relay/ResetUsb
