mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 08:09:59 +00:00
do not execute init cfg when charge
Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
parent
f5280fe304
commit
5223da7f25
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user