Merge "init: add ro.boot.init_rc"
am: 571cd23fa8
Change-Id: Ie945f49d9ce1fe849140d522b53f6346865d2f1e
This commit is contained in:
commit
fc8f2db476
|
@ -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…
Reference in New Issue