From 491a6a71ff685373422621f4b67f550806072d17 Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Thu, 22 Mar 2007 21:05:56 +0100 Subject: write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices --- extras/rule_generator/write_cd_rules | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'extras') 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 -- cgit v1.2.3-54-g00ecf