diff options
author | Tao Bao <tbao@google.com> | 2017-01-17 20:19:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-01-17 20:19:23 +0000 |
commit | 4c5c9db17b55bfcb2d62eec158440d0e794e30bb (patch) | |
tree | 85f48a91fc731aeb3ed6aed7ce7503f9a1f11b58 | |
parent | c160675a93c480ff7cb49c0139c41890127cbeb8 (diff) | |
parent | 01519a207cffb27517963d13ce9a021dacecdb45 (diff) | |
download | system_core-4c5c9db17b55bfcb2d62eec158440d0e794e30bb.tar.gz system_core-4c5c9db17b55bfcb2d62eec158440d0e794e30bb.tar.bz2 system_core-4c5c9db17b55bfcb2d62eec158440d0e794e30bb.zip |
Merge "Revert "init: add ro.boot.init_rc""
-rw-r--r-- | init/init.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/init/init.cpp b/init/init.cpp index 7f17a0ced..ee5add898 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -409,7 +409,7 @@ static void export_kernel_boot_props() { const char *default_value; } prop_map[] = { { "ro.boot.serialno", "ro.serialno", "", }, - { "ro.boot.mode", "ro.bootmode", "normal", }, + { "ro.boot.mode", "ro.bootmode", "unknown", }, { "ro.boot.baseband", "ro.baseband", "unknown", }, { "ro.boot.bootloader", "ro.bootloader", "unknown", }, { "ro.boot.hardware", "ro.hardware", "unknown", }, @@ -800,13 +800,7 @@ 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>()); - - std::string bootscript = property_get("ro.boot.init_rc"); - if (bootscript.empty()) { - parser.ParseConfig("/init.rc"); - } else { - parser.ParseConfig(bootscript); - } + parser.ParseConfig("/init.rc"); ActionManager& am = ActionManager::GetInstance(); @@ -831,8 +825,7 @@ int main(int argc, char** argv) { std::string bootmode = property_get("ro.bootmode"); if (bootmode == "charger") { am.QueueEventTrigger("charger"); - } else if (bootmode == "normal") { - // only trigger late-init in normal boot + } else { am.QueueEventTrigger("late-init"); } |