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

Commit cf2e899e authored by Steve Kondik's avatar Steve Kondik
Browse files

init: Add an emmc-specific configuration file

 * Load init.emmc.rc if emmc_boot is set
 * This makes startup much cleaner for devices with a mess of vendor RC
   configurations.

Change-Id: Ifa6d0ca104c11e037740690da0ff6284c2f4a3ca
parent 22b70582
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -940,6 +940,12 @@ int main(int argc, char **argv)
    else
    else
       init_parse_config_file("/lpm.rc");
       init_parse_config_file("/lpm.rc");


    /* Check for an emmc initialisation file and read if present */
    if (emmc_boot && access("/init.emmc.rc", R_OK) == 0) {
        INFO("Reading emmc config file");
            init_parse_config_file("/init.emmc.rc");
    }

    /* Check for a target specific initialisation file and read if present */
    /* Check for a target specific initialisation file and read if present */
    if (access("/init.target.rc", R_OK) == 0) {
    if (access("/init.target.rc", R_OK) == 0) {
        INFO("Reading target specific config file");
        INFO("Reading target specific config file");