summaryrefslogtreecommitdiff
path: root/etc/udev/debian/simple-cd-aliases.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/debian/simple-cd-aliases.rules')
-rw-r--r--etc/udev/debian/simple-cd-aliases.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/udev/debian/simple-cd-aliases.rules b/etc/udev/debian/simple-cd-aliases.rules
new file mode 100644
index 0000000000..bd700bc29f
--- /dev/null
+++ b/etc/udev/debian/simple-cd-aliases.rules
@@ -0,0 +1,5 @@
+# grouping of optical drives from multiple kernel subsystems
+BUS="scsi", KERNEL="sr[0-9]*", SYMLINK="cdrom%e"
+BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", SYMLINK="cdrom%e", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom"
+BUS="ide", KERNEL="pcd[0-9]*", SYSFS{removable}="1", SYMLINK="cdrom%e"
+