summaryrefslogtreecommitdiff
path: root/extras/rule_generator/75-cd-aliases-generator.rules
diff options
context:
space:
mode:
authorMarco d'Itri <md@Linux.IT>2007-08-07 10:37:58 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-07 10:37:58 +0200
commit14e1e49484401d573eac1a99002242dbf7c072f0 (patch)
tree22a7c72104a5308d95e9a65c2a840a65cadebbb8 /extras/rule_generator/75-cd-aliases-generator.rules
parent585e83885622af3b915b92bee71a575a11a6943a (diff)
rules_generator: remove policy from write_cd_rules
The decision about when to create by-id or by-path persistent rules should be made in the generator rules file where it's obvious and easy to modify locally, not in the script.
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
index c3eb887cb5..e357a6a8bd 100644
--- a/extras/rule_generator/75-cd-aliases-generator.rules
+++ b/extras/rule_generator/75-cd-aliases-generator.rules
@@ -1,3 +1,6 @@
# these rules generate rules for the /dev/{cdrom,dvd,...} symlinks
+# the path of removable devices changes frequently
+ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules by-id", SYMLINK+="%c"
+
ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules", SYMLINK+="%c"