From: Matthias Schwarzott Date: Thu, 22 Mar 2007 20:05:56 +0000 (+0100) Subject: write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices X-Git-Tag: 174~2015 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491a6a71ff685373422621f4b67f550806072d17;p=systemd write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices --- diff --git a/extras/rule_generator/write_cd_rules b/extras/rule_generator/write_cd_rules index 1dbe6b70..bd951c51 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