From 9f8d42a994ae60efff46611a8fb88fe55a506c7f Mon Sep 17 00:00:00 2001 From: Nathan Williams Date: Wed, 8 Jun 2011 15:52:08 -0400 Subject: core: handle udev 'change' events That's what the udev replay gives us these days (as of udev-152). --- src/mm-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-manager.c b/src/mm-manager.c index 30acda37..8e3e92e4 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -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); -- cgit v1.2.3-70-g09d2