#!/bin/bash # Host side of the robot's USB link on Omarchy (NetworkManager): 10.55.0.1/30 on the gadget's # interface, matched by its fixed MAC so any USB port and either machine works. Re-runnable. # No gateway and never-default, so the host's traffic is never routed through the robot. set -euo pipefail NAME=hermes-robot-usb HOST_MAC=02:68:65:72:6d:01 # must match HOST_MAC in pi/usb-gadget.sh nmcli connection delete "$NAME" >/dev/null 2>&1 || true nmcli connection add type ethernet con-name "$NAME" ifname '*' \ ethernet.mac-address "$HOST_MAC" \ ipv4.method manual ipv4.addresses 10.55.0.1/30 ipv4.never-default yes \ ipv6.method disabled \ connection.autoconnect yes connection.autoconnect-priority 100 echo "profile '$NAME' added; the robot is at 10.55.0.2"