Skip to contentSkip to conversation

hid2hci.rules uses old udevadm location

DISCUSSION Pacho Ramos 1 participant 1 message Mar 1, 2015 2 messages not in the archive Bluetooth drivers

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 18 lines · Pacho Ramos
Quoted 10 lines · Pacho Ramos

Hello

It seems that hid2hci.rules uses old udevadm location
ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change
--subsystem-match=usb --property-match=HID2HCI_SWITCH=1"

Wouldn't be better to make it use the current location used in udev/systemd? (/usr/bin/udevadm) (or to not hardcode the location)

Quoted 6 lines

Thanks a lot

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 6 lines

Or are we supposed to create the compat symlinks at /sbin?

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Probably you could supply something like the following rule to try to cover both cases, changing:

ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \
ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change
--subsystem-match=usb --property-match=HID2HCI_SWITCH=1"

to:

ATTR{bDeviceClass}=="e0", ATTR{bDeviceSubClass}=="01", ATTR{bDeviceProtocol}=="01", ATTR{idVendor}=="413c", \
ENV{REMOVE_CMD}="/usr/bin/udevadm trigger --action=change
--subsystem-match=usb --property-match=HID2HCI_SWITCH=1" \
ENV{REMOVE_CMD}="/sbin/udevadm trigger --action=change
--subsystem-match=usb --property-match=HID2HCI_SWITCH=1"

What do you think?