diff options
Diffstat (limited to 'source/a/udev/rule_generator.diff')
-rw-r--r-- | source/a/udev/rule_generator.diff | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/a/udev/rule_generator.diff b/source/a/udev/rule_generator.diff index 0ff218a6..f3f67516 100644 --- a/source/a/udev/rule_generator.diff +++ b/source/a/udev/rule_generator.diff @@ -1,6 +1,6 @@ -diff -Naur udev-114/extras/rule_generator/write_cd_rules udev-114slk/extras/rule_generator/write_cd_rules ---- udev-114/extras/rule_generator/write_cd_rules 2007-08-05 09:08:47.000000000 -0300 -+++ udev-114slk/extras/rule_generator/write_cd_rules 2007-08-22 20:17:24.000000000 -0300 +diff -Naur udev.orig/extras/rule_generator/write_cd_rules udev/extras/rule_generator/write_cd_rules +--- udev.orig/extras/rule_generator/write_cd_rules 2009-05-19 00:24:39.000000000 -0300 ++++ udev/extras/rule_generator/write_cd_rules 2009-05-19 01:02:17.000000000 -0300 @@ -3,7 +3,8 @@ # This script is run if an optical drive lacks a rule for persistent naming. # @@ -11,13 +11,13 @@ diff -Naur udev-114/extras/rule_generator/write_cd_rules udev-114slk/extras/rule # # (C) 2006 Marco d'Itri <md@Linux.IT> # -@@ -97,18 +98,59 @@ +@@ -96,18 +97,57 @@ choose_rules_file link_num=$(find_next_available 'cdrom[0-9]*') +[ "$link_num" = "" ] && link_num=0 - match="ENV{ID_CDROM}==\"?*\", $RULE" + match="SUBSYSTEM==\"block\", ENV{ID_CDROM}==\"?*\", $RULE" comment="$ID_MODEL ($ID_PATH)" - @@ -73,8 +73,6 @@ diff -Naur udev-114/extras/rule_generator/write_cd_rules udev-114slk/extras/rule + fi + fi + fi -+ -+ + echo >> $RULES_FILE unlock_rules_file - |