Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # udev rule to allow permissive hidraw access to busylight device - allow non-root use by items such as Node package 'busylight'
- # to be placed in /etc/udev/rules.d/
- # working on Ubuntu 16.04 as of 2019-07
- # regex-match devpath - would match (*=specific, #=any hex)
- # /devices/pci0000:00/xxxx:xx:xx.x/usb3/x-x/x-x:x.x/xxxx:27BB:3BCA.xxxx/hidraw/hidrawx
- # *** ####*********** ******
- # 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
- 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