diff --git a/services/etc/init.cfg b/services/etc/init.cfg index afa4cacb3..9d6dc24b5 100755 --- a/services/etc/init.cfg +++ b/services/etc/init.cfg @@ -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", diff --git a/services/init/init_config.c b/services/init/init_config.c index 6a5f11999..59c3a2109 100644 --- a/services/init/init_config.c +++ b/services/init/init_config.c @@ -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);