core: handle udev 'change' events

That's what the udev replay gives us these days (as of udev-152).
This commit is contained in:
Nathan Williams
2011-06-08 15:52:08 -04:00
committed by Dan Williams
parent 509521d180
commit 9f8d42a994

View File

@@ -951,7 +951,8 @@ handle_uevent (GUdevClient *client,
/* We only care about tty/net devices when adding modem ports,
* 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);
else if (!strcmp (action, "remove"))
device_removed (self, device);