2 may
2021

linux udev rule on removal, need more information to take action

I have a USB serial port using FTDI chips (actually about 10 of them). Each of these create a /dev/tun type network device.

What works:

I can seem to get the ACTION="add" rules to work, when the ADD occurs - things are great, the ENV{ID_SERIAL_SHORT} can be used to match the USB device to the intended purpose. Thus, on insert - I can run a script to that brings up that specific /dev/tun network interface and configure it accordingly.

What does not work:

However, the ACTION="remove" lacks sufficient information, for example I'd like to use the FTDI chip serial number (ie: ENV{ID_SERIAL_SHORT}) to know which interface to tear down. What I get is the SYSPATH... I need the SERIAL NUMBER

Suggestions?

COMENTARIOS

DEJA TU COMENTARIO

© 2017 website by Rubit Corporation