0
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh"

script:

#!/bin/sh

vlc v4l2:///dev/video0

udevadm test shows that it runs the script but nothing happens :/

0
0

You could use libudev, that could be what you are looking for.

1
  • Saying that they could use something isn't an Answer; how would they use it to solve their problem? – Jeff Schaller Dec 19 '18 at 17:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.