Skip to content
  • Guillaume Tucker's avatar
    Update udev rule to match major number 189 and use /dev device path · c74ce6ac
    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: default avatarGuillaume Tucker <guillaume.tucker@collabora.com>
    c74ce6ac