Merge "init: add ro.boot.init_rc" am: 571cd23fa8
am: fc8f2db476
Change-Id: I9ab39983a551e9f13a6d163a9f0fa2efd904db0f
This commit is contained in:
commit
70410e7c41
1 changed files with 6 additions and 1 deletions
|
|
@ -835,7 +835,12 @@ int main(int argc, char** argv) {
|
|||
parser.AddSectionParser("service",std::make_unique<ServiceParser>());
|
||||
parser.AddSectionParser("on", std::make_unique<ActionParser>());
|
||||
parser.AddSectionParser("import", std::make_unique<ImportParser>());
|
||||
parser.ParseConfig("/init.rc");
|
||||
std::string bootscript = property_get("ro.boot.init_rc");
|
||||
if (bootscript.empty()) {
|
||||
parser.ParseConfig("/init.rc");
|
||||
} else {
|
||||
parser.ParseConfig(bootscript);
|
||||
}
|
||||
|
||||
ActionManager& am = ActionManager::GetInstance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue