> Then you need to fix your script, as it can be determined from the
> environment variables that are passed to it by udev.  Otherwise udev and
> scripts that trigger off of device discovery would not work very well :)

Aaaah! That's the puzzle piece I was missing! Yes, it makes sense now
and, oh lookie here the information I get as environment variables when
the script is invoked:

DEVNAME=/dev/bus/usb/002/002
DEVPATH=/devices/pci0000:00/0000:00:0c.0/usb2/2-1

I think I can work with that. :)

Thanks!

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to