aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-manager.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mm-manager.c b/src/mm-manager.c
index 434dc37e..287c1ab7 100644
--- a/src/mm-manager.c
+++ b/src/mm-manager.c
@@ -11,7 +11,7 @@
* GNU General Public License for more details:
*
* Copyright (C) 2008 - 2009 Novell, Inc.
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009 - 2010 Red Hat, Inc.
*/
#include <string.h>
@@ -737,6 +737,12 @@ device_added (MMManager *manager, GUdevDevice *device)
goto out;
}
+ /* Is the device blacklisted? */
+ if (g_udev_device_get_property_as_boolean (physdev, "ID_MM_DEVICE_IGNORE")) {
+ g_debug ("(%s/%s): port's parent device is blacklisted", subsys, name);
+ goto out;
+ }
+
physdev_path = g_udev_device_get_sysfs_path (physdev);
if (!physdev_path) {
g_debug ("(%s/%s): could not get port's parent device sysfs path", subsys, name);