summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-11-06 23:30:31 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-11-06 23:30:31 +0100
commit5101923ff965cf35af7897e4dda378a1607f8f69 (patch)
tree8e1ac9f36fcaacfb6beff5abb36061bef799c709 /rules
parent6a90a5124a5e500fa522ad22e1527bc47d9b4c3d (diff)
rules: restore rule to set cdrom group for optical drives
On Sun, Nov 6, 2011 at 21:45, William Hubbs <w.d.hubbs@gmail.com> wrote: > someone on gentoo just reported to me that the following rule has been > deleted from udev-174, which is leaving his optical devices in the > standard "disk" group. He does not want to add his users to this group.
Diffstat (limited to 'rules')
-rw-r--r--rules/rules.d/50-udev-default.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules
index b31ac42ab7..3ef6783037 100644
--- a/rules/rules.d/50-udev-default.rules
+++ b/rules/rules.d/50-udev-default.rules
@@ -70,6 +70,7 @@ SUBSYSTEM=="block", GROUP="disk"
SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
# cdrom
+SUBSYSTEM=="block", KERNEL=="sr[0-9]*". GROUP="cdrom"
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
KERNEL=="pktcdvd", GROUP="cdrom"