So I'm reading about udev and have this script that does correctly run when I plug in my solidoodle printer:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0483", RUN+="/usr/local/bin/solidoodle-connect"
I see an ACTION="add" environment variable inside the script which gets run.
But, when I unplug the device, the script is not run and I never see an ACTION="remove".
Anyone know how to notice when a USB device is removed?
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.