From aa78b5f5e5319e04f5b57f928bfab69dd4b93d88 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 2 Oct 2009 23:33:18 -0700 Subject: bluetooth: handle rfcomm device moves rfcomm devices seem to be created as 'virtual' devices first, without any parents, then moved to the right place in the device tree. So handle moves too; if the modem was already found in the 'add' phase it'll be ignored in the move phase. --- src/mm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-manager.c b/src/mm-manager.c index a812c792..73189146 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -612,7 +612,7 @@ 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 (subsys, "usb") !=0 ) + if ((!strcmp (action, "add") || !strcmp (action, "move")) && strcmp (subsys, "usb") !=0 ) device_added (self, device); else if (!strcmp (action, "remove")) device_removed (self, device); -- cgit v1.2.3-70-g09d2