run script when USB serial device unplugged?

Tom Horsley horsley1953 at gmail.com
Thu Sep 5 19:11:28 UTC 2013


On Thu, 5 Sep 2013 14:30:38 -0400
Tom Horsley wrote:

> Anyone know how to notice when a USB device is removed?

Worked out the answer. For some reason when ACTION=="remove"
the ATTRS{} match on product and vendor doesn't work, but
if I use the ENV{} match on the corresponding environment
variables, it does work.


More information about the users mailing list