Skip to content

Commit d397c40

Browse files
committed
udev: Only scan the requested USB device
Instead of scanning all USB devices everytime a new device is plugged, which might disrupt the functionality of the unrelated devices being scanned, only scan for the USB device we are interested in, since we know its VID/PID. Signed-off-by: Paul Cercueil <[email protected]>
1 parent ac180d1 commit d397c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libiio.rules.cmakein

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SUBSYSTEM=="usb", PROGRAM=="/bin/sh -c '@CMAKE_INSTALL_FULL_BINDIR@/iio_info -S usb | grep %s{idVendor}:%s{idProduct}'", RESULT!="", MODE="666"
1+
SUBSYSTEM=="usb", PROGRAM=="/bin/sh -c '@CMAKE_INSTALL_FULL_BINDIR@/iio_info -S usb=%s{idVendor}:%s{idProduct} | grep %s{idVendor}:%s{idProduct}'", RESULT!="", MODE="666"

0 commit comments

Comments
 (0)