summarylogtreecommitdiffstats
path: root/20-rfcat.rules
blob: 045b6ac0951a16e2ba0cd0352254b7656d562ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# From https://bitbucket.org/atlas0fd00m/rfcat/src/27e14cde402ffdc3bf3c95fef4a967c9c4b89a6e/etc/udev/rules.d/20-rfcat.rules
# Use systemd ENV{ID_SOFTWARE_RADIO} udev trick to add USB device to "user access" class
# https://github.com/systemd/systemd/blob/v231/src/login/70-uaccess.rules#L75

# legacy RfCats and cc1111usb
SUBSYSTEMS=="usb" ATTRS{idVendor}=="0451" ATTRS{idProduct}=="4715" MODE:="0660" SYMLINK+="RFCAT%n", ENV{ID_SOFTWARE_RADIO}="1"

# modern RfCats
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="6047" MODE:="0660" SYMLINK+="RFCAT%n", ENV{ID_SOFTWARE_RADIO}="1"
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="6048" MODE:="0660" SYMLINK+="RFCAT%n", ENV{ID_SOFTWARE_RADIO}="1"
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="605b" MODE:="0660" SYMLINK+="RFCAT%n", ENV{ID_SOFTWARE_RADIO}="1"

# RfCat bootloader subsystem (uses it's own product id)
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="6049" SYMLINK+="RFCAT_BL_C" ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="604a" SYMLINK+="RFCAT_BL_D" ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEMS=="usb" ATTRS{idVendor}=="1d50" ATTRS{idProduct}=="605c" SYMLINK+="RFCAT_BL_YS1" ENV{ID_MM_DEVICE_IGNORE}="1"