Merge "init: add ro.boot.init_rc" am: 571cd23fa8 am: fc8f2db476
am: 70410e7c41
Change-Id: I8697511f899a48ab65bef11eddc29af773324306
This commit is contained in:
commit
704985af60
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