summaryrefslogtreecommitdiff
path: root/extras/rule_generator/75-cd-aliases-generator.rules
diff options
context:
space:
mode:
Diffstat (limited to 'extras/rule_generator/75-cd-aliases-generator.rules')
-rw-r--r--extras/rule_generator/75-cd-aliases-generator.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/rule_generator/75-cd-aliases-generator.rules b/extras/rule_generator/75-cd-aliases-generator.rules
new file mode 100644
index 0000000000..c3eb887cb5
--- /dev/null
+++ b/extras/rule_generator/75-cd-aliases-generator.rules
@@ -0,0 +1,3 @@
+# these rules generate rules for the /dev/{cdrom,dvd,...} symlinks
+
+ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules", SYMLINK+="%c"