diff --git a/hardware.c b/hardware.c index 1f831cbc..9651f4c8 100644 --- a/hardware.c +++ b/hardware.c @@ -153,6 +153,10 @@ int hw_get_module_by_class(const char *class_id, const char *inst, HAL_LIBRARY_PATH1, name, prop); if (access(path, R_OK) == 0) break; } else { + snprintf(path, sizeof(path), "%s/%s.default.so", + HAL_LIBRARY_PATH2, name); + if (access(path, R_OK) == 0) break; + snprintf(path, sizeof(path), "%s/%s.default.so", HAL_LIBRARY_PATH1, name); if (access(path, R_OK) == 0) break;