core: handle udev 'change' events
That's what the udev replay gives us these days (as of udev-152).
This commit is contained in:

committed by
Dan Williams

parent
509521d180
commit
9f8d42a994
@@ -951,7 +951,8 @@ handle_uevent (GUdevClient *client,
|
|||||||
/* We only care about tty/net devices when adding modem ports,
|
/* We only care about tty/net devices when adding modem ports,
|
||||||
* but for remove, also handle usb parent device remove events
|
* but for remove, also handle usb parent device remove events
|
||||||
*/
|
*/
|
||||||
if ((!strcmp (action, "add") || !strcmp (action, "move")) && strcmp (subsys, "usb") !=0 )
|
if ( (!strcmp (action, "add") || !strcmp (action, "move") || !strcmp (action, "change"))
|
||||||
|
&& (strcmp (subsys, "usb") != 0))
|
||||||
device_added (self, device);
|
device_added (self, device);
|
||||||
else if (!strcmp (action, "remove"))
|
else if (!strcmp (action, "remove"))
|
||||||
device_removed (self, device);
|
device_removed (self, device);
|
||||||
|
Reference in New Issue
Block a user