mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices
This commit is contained in:
parent
9d534c0e76
commit
491a6a71ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user