Revert "init: add ro.boot.init_rc"

This reverts commit 7e6d30e5f2.

Bug: 26639863
Bug: 34318089
Change-Id: Ie71d773ee7c6c6a90e8298f8e0798eacba12d0be
This commit is contained in:
Tao Bao 2017-01-17 18:03:58 +00:00
parent 7e6d30e5f2
commit 01519a207c

View file

@ -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");
}