do not execute init cfg when charge

Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
cat 2024-11-01 08:11:23 +00:00
parent f5280fe304
commit 5223da7f25
2 changed files with 3 additions and 4 deletions

View File

@ -173,9 +173,9 @@
"chown root system /dev/fscklogs/log",
"chmod 0770 /dev/fscklogs/log",
"chmod 0660 /dev/fuse",
"restorecon /data/service/el1/public",
"restorecon /data/service/el1/public/activation_lock",
"restorecon /data/service/el1/startup/parameters"
"restorecon -F /data/service/el1/public",
"restorecon -F /data/service/el1/public/activation_lock",
"restorecon -F /data/service/el1/startup/parameters"
]
}, {
"name" : "boot",

View File

@ -112,7 +112,6 @@ void ReadConfig(void)
ReadFileInDir(OTHER_CHARGE_PATH, ".cfg", ParseInitCfg, NULL);
ParseInitCfgByPriority();
} else if (strcmp(buffer, "charger") == 0) {
ParseInitCfg(INIT_CONFIGURATION_FILE, NULL);
ReadFileInDir(OTHER_CHARGE_PATH, ".cfg", ParseInitCfg, NULL);
} else if (InRescueMode() == 0) {
ParseInitCfg(INIT_CONFIGURATION_FILE, NULL);