Bug#378839: [Pkg-bluetooth-maintainers] Bug#378839: bluez-pcmcia-support: udev support broken

Marcel Holtmann marcel at holtmann.org
Tue Jul 25 15:12:11 UTC 2006


Hi,

> > > PHYSDEVPATH and the 'device' link are both deprecated and will go away
> > > some day in the future, you better pass the values you want to use in
> > > your script down from udev with $sysfs{}. That is not dependent on a
> > > specific order of devices in sysfs.
> 
> > I've attached working (for me) rules+bluetooth.sh.  $sysfs{manf_id} and 
> > $sysfs{card_id} are passed to bluetooth.sh.
> 
> Looks fine, and should not break, if something in sysfs changes, which
> is nice.
> 
> Btw, you should be able to just do RUN+="bluetooth.sh", as udev will
> look in /lib/udev/ if it does not start with a '/'.

this is nice, but there is no need to run bluetooth.sh on non-serial
based Bluetooth cards like the Nokia DTL1 for example. They work
perfectly fine without any additional udev rule.

I also don't like that bluetooth.sh tries to run /etc/init.d/bluetooth,
because this should not be a task of an udev script. Either Bluetooth is
enabled to be started a system boot or not.

The other thing is that this is not Debian specific. So why does nobody
tried to start an upstream discussion on bluez-devel or linux-hotplug
mailing list.

Regards

Marcel






More information about the Pkg-bluetooth-maintainers mailing list