core: actually ignore blacklisted devices
This commit is contained in:
+7
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user