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 :/

xCorea
  • 1

1 Answers1

0

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