RE: udev rule bluetooth.rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-owner@xxxxxxxxxxxxxxx] On Behalf Of Stefan Seyfried
Sent: 05 July, 2009 15:33
To: linux-bluetooth@xxxxxxxxxxxxxxx
Subject: Re: udev rule bluetooth.rules

On Sun, 5 Jul 2009 12:24:34 +0200
John Frankish <j-frankish@xxxxxxx> wrote:

> Ref bluez-4.43 /etc/udev/bluetooth.rules:
>
> # Run helper every time a Bluetooth device appears
> # On remove actions, bluetoothd should go away by itself
> ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/sbin/bluetoothd
> --udev"
>
> Shouldn't this be of the format /etc/udev/rules.d/xx-bluetooth.rules
> so that it starts in the correct order - i.e. after dbus?

That's taken care of - if dbus is not available, bluetoothd will exit
with return code 1. udev will notice that and later start it again in
the coldplug run.

> if dbus is not started, I need to do this:
> # udevtrigger --subsystem-match=bluetooth
> is this is what was meant by "coldplug run"?
--
Thanks - I'd been playing around with this as /etc/udev/rules.d/85-bluetooth.rules but hadn't got around to trying without dbus started - it works for me with dbus started.

It would be nice if "--prefix=/usr/local" were passed to bluetooth.rules to give:

ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/local/sbin/bluetoothd

..would have saved me 30mins or so anyway :)


��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux