]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: since bt devices cannot be renamed revert to %k
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Aug 2011 23:09:21 +0000 (01:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Aug 2011 23:09:21 +0000 (01:09 +0200)
src/99-systemd.rules.in

index c036e2d5161b249638fe67ff8c8abb5ef8df1cfd..a9e740e05a9b3268328eac818982bee70a9210c5 100644 (file)
@@ -31,7 +31,7 @@ SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_T
 # http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=libudev/libudev-enumerate.c;h=da831449dcaf5e936a14409e8e68ab12d30a98e2;hb=HEAD#l742
 
 SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/$name"
-SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/$name"
+SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/%k"
 
 SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target"
 ENV{ID_SMARTCARD_READER}=="*?", TAG+="systemd", ENV{SYSTEMD_WANTS}="smartcard.target"