summaryrefslogtreecommitdiff
path: root/extras/rule_generator/75-cd-aliases-generator.rules
diff options
context:
space:
mode:
authorMarco d'Itri <md@Linux.IT>2006-09-05 15:20:28 +0200
committerKay Sievers <kay.sievers@suse.de>2006-09-05 15:20:28 +0200
commitfbcbf70bb21a618024ce8c1ea0b4f6718c2a8dd2 (patch)
tree215b15e195c046aae317a01db5edadde5a2e7ce1 /extras/rule_generator/75-cd-aliases-generator.rules
parentd60fd52af868ec6043d9a6dc641a6a64feabd238 (diff)
add persistent rules generator for net devices and optical drives
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"