diff options
author | Nathan Williams <njw@google.com> | 2011-06-08 15:52:08 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-06-09 16:51:35 -0500 |
commit | 9f8d42a994ae60efff46611a8fb88fe55a506c7f (patch) | |
tree | 29bfcd337391a49fad0dd34243048ea2307be811 /src/mm-manager.c | |
parent | 509521d180e333a76233baf9c14e1a33ceca42b6 (diff) |
core: handle udev 'change' events
That's what the udev replay gives us these days (as of udev-152).
Diffstat (limited to 'src/mm-manager.c')
-rw-r--r-- | src/mm-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |