From: Ray Strode Date: Fri, 10 Jan 2014 23:12:57 +0000 (-0500) Subject: device-manager: only pass scan a device passes all checks X-Git-Tag: 0.9.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74bd75d4d37eb896da58bc5303f6f746b96a21c3;p=thirdparty%2Fplymouth.git device-manager: only pass scan a device passes all checks Right now scan_graphics_devices returns true, if a device is found, even if that device doesn't get used because it's not fully initialized. --- diff --git a/src/libply-splash-core/ply-device-manager.c b/src/libply-splash-core/ply-device-manager.c index 2b46cd65..991274dd 100644 --- a/src/libply-splash-core/ply-device-manager.c +++ b/src/libply-splash-core/ply-device-manager.c @@ -283,7 +283,6 @@ scan_graphics_devices (ply_device_manager_t *manager) if (strcmp (fb_path, "/sys/devices/virtual/graphics/fbcon") == 0) continue; - found_device = true; ply_trace ("found device %s", fb_path); fb_device = udev_device_new_from_syspath (manager->udev_context, fb_path); @@ -302,6 +301,7 @@ scan_graphics_devices (ply_device_manager_t *manager) if (fb_node != NULL) { ply_trace ("found node %s", fb_node); + found_device = true; create_seat_for_udev_device (manager, fb_device); } }