summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-03-22 21:05:56 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-03-22 21:05:56 +0100
commit491a6a71ff685373422621f4b67f550806072d17 (patch)
tree464d0cc61eb038e63f86b75defde62f65ac8f093 /extras
parent9d534c0e764a6d2c20032d130e40e867133af149 (diff)
write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices
Diffstat (limited to 'extras')
-rw-r--r--extras/rule_generator/write_cd_rules10
1 files changed, 9 insertions, 1 deletions
diff --git a/extras/rule_generator/write_cd_rules b/extras/rule_generator/write_cd_rules
index 1dbe6b70de..bd951c5146 100644
--- a/extras/rule_generator/write_cd_rules
+++ b/extras/rule_generator/write_cd_rules
@@ -53,7 +53,15 @@ fi
if [ "$1" ]; then
METHOD="$1"
else
- METHOD='by-path'
+ case "$ID_BUS" in
+ usb|ieee1394)
+ METHOD='by-id'
+ ;;
+
+ *)
+ METHOD='by-path'
+ ;;
+ esac
fi
case "$METHOD" in