kernel_module_loader: Set a prop after completing
* we can use this as a trigger in init rc, for any task that depend on kernel modules being loaded Change-Id: I7623edc0b6dc799e911a087881f76e9642e005ee
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "kernel_module_loader.hpp"
|
||||
#include "common.h"
|
||||
|
||||
const std::vector<std::string> kernel_modules_requested = TWFunc::split_string(EXPAND(TW_LOAD_VENDOR_MODULES), ' ', true);
|
||||
|
||||
@@ -58,6 +59,10 @@ exit:
|
||||
if (ven)
|
||||
ven->UnMount(false);
|
||||
|
||||
android::base::SetProperty("twrp.modules.loaded", "true");
|
||||
|
||||
TWFunc::Wait_For_Battery(3s);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user