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

Kay Sievers kay.sievers at vrfy.org
Tue Jul 25 11:18:52 UTC 2006


On Tue, 2006-07-25 at 12:52 +0200, Felix Homann wrote:
> On Tuesday 25 July 2006 11:12, Filippo Giunchedi wrote:
> > what about the change from DEVPATH to PHYSDEVPATH Felix proposed in
> > bluetooth.sh?
> 
> Hi again,
> 
> MANFID=`cat /sys/$PHYSDEVPATH/manf_id`","`cat /sys/$PHYSDEVPATH/card_id`
> 
> and
> 
> MANFID=`cat /sys/$DEVPATH/device/manf_id`","`cat /sys/$DEVPATH/device/card_id`
> 
> seem to be equivalent in this setting. I don't know if either one is prefered 
> or deprecated, but I would now prefer the latter since it's simpler:
> 
> $DEVPATH -> /class/tty/ttyS2
> $PHYSDEVPATH ->  /devices/pci0000:00/0000:00:1e.0/0000:06:01.0/0.0

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.

Kay





More information about the Pkg-bluetooth-maintainers mailing list