diff options
author | Dan Williams <dcbw@redhat.com> | 2010-04-09 19:32:47 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-04-09 19:32:47 -0700 |
commit | 78c232c2d1901aee15a2d304e838443c9b1d37ba (patch) | |
tree | 59530e3b2be38db0b0a2f34ae4bc85c038750840 | |
parent | 387b64a92bc480f949e647509772644a72e93e5a (diff) |
core: actually ignore blacklisted devices
-rw-r--r-- | src/mm-manager.c | 8 |
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); |