1
1
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:
Matthias Schwarzott 2007-03-22 21:05:56 +01:00 committed by Kay Sievers
parent 9d534c0e76
commit 491a6a71ff

View File

@ -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