The test for a running systemd has changed a little. The recommended one is
test -d /run/systemd/system.

I've updated the patch accordingly.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Description: Don't start bluetoothd directly from the udev rule under systemd
 systemd has better mechanisms to start services when hardware is
 hotplugged so we simply skip this rule when running under systemd.
 The bluetooth.service will be activated via bluetooth.target instead.
Author: Michael Biebl <bi...@debian.org>
Index: bluez-4.99/scripts/bluetooth.rules.in
===================================================================
--- bluez-4.99.orig/scripts/bluetooth.rules.in	2013-02-08 01:30:34.469946744 +0100
+++ bluez-4.99/scripts/bluetooth.rules.in	2013-02-08 01:34:31.192666562 +0100
@@ -1,4 +1,6 @@
 # Run helper every time a Bluetooth device appears
 # On remove actions, bluetoothd should go away by itself
+TEST=="/run/systemd/system", GOTO="bluetooth_end"
 ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/lib/udev/bluez-udev --udev"
 ACTION=="change", SUBSYSTEM=="bluetooth", RUN+="/lib/udev/bluez-udev --udev"
+LABEL="bluetooth_end"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to