Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # udev rule to allow permissive hidraw access to busylight device - allow non-root use by items such as Node package 'busylight'
  2. # to be placed in /etc/udev/rules.d/
  3. # working on Ubuntu 16.04 as of 2019-07
  4.  
  5.  
  6. # regex-match devpath - would match (*=specific, #=any hex)
  7. # /devices/pci0000:00/xxxx:xx:xx.x/usb3/x-x/x-x:x.x/xxxx:27BB:3BCA.xxxx/hidraw/hidrawx
  8. # *** ####*********** ******
  9. # only necessary because the ATTR for idVendor and idProduct don't seem to be passed to the hidraw event call - parse it from devpath instead
  10.  
  11. SUBSYSTEM=="hidraw", PROGRAM="/bin/echo $devpath | /bin/sed -n '/.*usb.*\/[0-9A-Za-z]\{4\}:27BB:3BCA\..*hidraw/!{q1}'", MODE="0666"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement