summaryrefslogtreecommitdiff
path: root/rules/debian/75-cd-aliases-generator.rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules/debian/75-cd-aliases-generator.rules')
-rw-r--r--rules/debian/75-cd-aliases-generator.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/debian/75-cd-aliases-generator.rules b/rules/debian/75-cd-aliases-generator.rules
new file mode 100644
index 0000000000..6b178a0ae7
--- /dev/null
+++ b/rules/debian/75-cd-aliases-generator.rules
@@ -0,0 +1,11 @@
+# These rules generate rules for the /dev/{cdrom,dvd,...} symlinks and
+# write them to /etc/udev/rules.d/70-persistent-cd.rules.
+
+ACTION=="add", SUBSYSTEM=="block", ENV{GENERATED}!="?*", ENV{ID_CDROM}=="?*", \
+ SUBSYSTEMS!="usb|ieee1394", \
+ PROGRAM="write_cd_rules", SYMLINK+="$result"
+
+ACTION=="add", SUBSYSTEM=="block", ENV{GENERATED}!="?*", ENV{ID_CDROM}=="?*", \
+ SUBSYSTEMS=="usb|ieee1394", \
+ PROGRAM="write_cd_rules by-id", SYMLINK+="$result"
+