SHARE
TWEET

Untitled

a guest Jul 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top