Skip to content

Commit

Permalink
Update udev rule to only scan USB
Browse files Browse the repository at this point in the history
Having "iio_info -s" in the udev rule will scan all available backends,
and some (like the network backend) may take a while to process.

Run "iio_info -S usb" instead to specify that we only want to scan USB
contexts.

Signed-off-by: Paul Cercueil <[email protected]>
Reported-by: Alexandra Trifan <[email protected]>
  • Loading branch information
pcercuei committed Jul 8, 2021
1 parent 52e6dc3 commit 0b80a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libiio.rules.cmakein
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBSYSTEM=="usb", PROGRAM=="/bin/sh -c '@CMAKE_INSTALL_FULL_BINDIR@/iio_info -s | grep %s{idVendor}:%s{idProduct}'", RESULT!="", MODE="666"
SUBSYSTEM=="usb", PROGRAM=="/bin/sh -c '@CMAKE_INSTALL_FULL_BINDIR@/iio_info -S usb | grep %s{idVendor}:%s{idProduct}'", RESULT!="", MODE="666"

0 comments on commit 0b80a01

Please sign in to comment.