-
Guillaume Tucker authored
When the servo board gets attached, several USB device entries are created in sysfs. Rather than matching these, which cause the systemd service to be spawned multiple times, match the parent USB device entry by filtering with the MAJOR environment variable. Also use the raw device path in /dev rather than the sysfs path to find the udev device. This means the systemd service instance name has a more unique and descriptive name, only one service gets started for each servo board connected and there's no need to search for parent udev devices in run-servod any more. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
c74ce6ac