Fix udev rules

* USB VID and PID are case sensitive
* Only give permissions for owner and group
This commit is contained in:
Matthew Mets 2023-02-16 14:59:25 +00:00 committed by Michael Cardell Widerkrantz
parent fc335bfd7a
commit 84e2bedef5
No known key found for this signature in database
GPG Key ID: D3DB3DDF57E704E5

View File

@ -1,6 +1,5 @@
# CH552 bootloader (for unprogrammed CH552 chips)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="4348", ATTR{idProduct}=="55e0", MODE="0666", GROUP="dialout"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="4348", ATTR{idProduct}=="55e0", MODE="0660", GROUP="dialout"
# TP-1 programmer (USB mode)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="CAFE", ATTR{idProduct}=="4010", MODE="0666", GROUP="dialout"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="cafe", ATTR{idProduct}=="4010", MODE="0660", GROUP="dialout"