diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-03-22 21:05:56 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-22 21:05:56 +0100 |
commit | 491a6a71ff685373422621f4b67f550806072d17 (patch) | |
tree | 464d0cc61eb038e63f86b75defde62f65ac8f093 | |
parent | 9d534c0e764a6d2c20032d130e40e867133af149 (diff) |
write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices
-rw-r--r-- | extras/rule_generator/write_cd_rules | 10 |
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 |