mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
9 lines
388 B
Text
9 lines
388 B
Text
# Make the /dev/lirc* devices accessible for users in the group "lirc"
|
|
# using regular group permissions.
|
|
|
|
KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", GROUP="lirc", MODE="0660"
|
|
|
|
# Grant rw permission to the lirc group for USB devices using acl(5).
|
|
|
|
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVNAME}=="?*", \
|
|
RUN+="/usr/bin/sh -c '/usr/bin/setfacl -m g:lirc:rw %E{DEVNAME} 2>/dev/null || :'"
|