1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  
     | 
    
      # Do not edit this file - generated by make-hwdb-rules-file.py
#
# Copyright 2019-2024, Collabora, Ltd. and the xr-hardware contributors
#
# SPDX-License-Identifier: BSL-1.0
# 70-xrhardware-hwdb.rules
# Must be located at a number smaller than 73 for uaccess to work right!
# Skip if a remove
ACTION=="remove", GOTO="xrhardware_end"
# This rules file must be used with the corresponding hwdb file
# Exit if we didn't find one
ENV{ID_xrhardware}!="1", GOTO="xrhardware_end"
# XR devices with serial ports aren't modems, modem-manager
ENV{ID_xrhardware_USBSERIAL_NAME}!="", SUBSYSTEM=="usb", ENV{ID_MM_DEVICE_IGNORE}="1"
# Make friendly symlinks for XR USB-Serial devices.
ENV{ID_xrhardware_USBSERIAL_NAME}!="", SUBSYSTEM=="tty", SYMLINK+="ttyUSB.$env{ID_xrhardware_USBSERIAL_NAME}"
LABEL="xrhardware_end"
 
     |