diff options
| author | Steve Kondik <shade@chemlab.org> | 2012-05-09 19:51:24 -0700 |
|---|---|---|
| committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 23:04:45 +0100 |
| commit | 912f3a5a9503845c84a0a5cf918bb3f1fbfd4ebc (patch) | |
| tree | a7cf0af4775e4c18ebd6cd43db6e89b5bdfdc378 /init/init.c | |
| parent | ebdb2805bb71c6406eab24b90dd5210f2fd6c642 (diff) | |
| download | system_core-912f3a5a9503845c84a0a5cf918bb3f1fbfd4ebc.tar.gz system_core-912f3a5a9503845c84a0a5cf918bb3f1fbfd4ebc.tar.bz2 system_core-912f3a5a9503845c84a0a5cf918bb3f1fbfd4ebc.zip | |
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
Diffstat (limited to 'init/init.c')
| -rwxr-xr-x | init/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c index 14416e02..f6fb12c3 100755 --- a/init/init.c +++ b/init/init.c @@ -962,6 +962,12 @@ int main(int argc, char **argv) else 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 */ if (access("/init.target.rc", R_OK) == 0) { INFO("Reading target specific config file"); |
