Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e7b7739 authored by Dima Zavin's avatar Dima Zavin Committed by Jean-Baptiste Queru
Browse files

init: import the hardware specific init file in init.rc



This removes the hardcoding of the file import in init and instead
allows the init.rc file to fully control what is loaded.

Change-Id: I933e5bbab57f1e8705a370d660f92c6508da94d2
Signed-off-by: default avatarDima Zavin <dima@android.com>
parent a6235eac
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -706,8 +706,6 @@ int main(int argc, char **argv)

    INFO("reading config file\n");
    init_parse_config_file("/init.rc");
    snprintf(tmp, sizeof(tmp), "/init.%s.rc", hardware);
    init_parse_config_file(tmp);

    action_for_each_trigger("early-init", action_add_queue_tail);

+2 −0
Original line number Diff line number Diff line
import /init.${ro.hardware}.rc

on early-init
    # Set init and its forked children's oom_adj.
    write /proc/1/oom_adj -16