# udev rules to set the access rights of ice40-usbtrace
#
# copy this file to /etc/udev/rules.d and perform udevadm control -R

# If not adding the device, go away
ACTION!="add", GOTO="ice40usbtrace_rules_end"
SUBSYSTEM!="usb", GOTO="ice40usbtrace_rules_end"

# sysmocom ice40usbtrace (DFU and runtime)
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="617d", GROUP="plugdev"
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="617e", GROUP="plugdev"

# All done
LABEL="ice40usbtrace_rules_end"