提交 b2cf5d75 编写于 作者: O openharmony_ci 提交者: Gitee

!53 修改init.cfg

Merge pull request !53 from 熊磊/init0713
......@@ -181,6 +181,7 @@
"chown system system /sys/power/state",
"chown system system /sys/power/wakeup_count",
"chmod 0660 /sys/power/state",
"chmod 0666 /dev/binder",
"start logd",
"start servicemanager",
"start hwservicemanager",
......
......@@ -485,28 +485,28 @@ static void DoInsmod(const char *cmdContent)
size_t count = strlen(cmdContent);
if (count > OPTIONS_SIZE) {
INIT_LOGE("options too long, maybe lost some of options\n");
INIT_LOGE("DoInsmod options too long, maybe lost some of options\n");
}
line = (char *)malloc(count + 1);
if (line == NULL) {
INIT_LOGE("Allocate memory failed.\n");
INIT_LOGE("DoInsmod allocate memory failed.\n");
return;
}
if (memcpy_s(line, count, cmdContent, count) != EOK) {
INIT_LOGE("memcpy failed\n");
INIT_LOGE("DoInsmod memcpy failed\n");
free(line);
return;
}
line[count] = '\0';
do {
if ((p = strtok_r(line, " ", &restPtr)) == NULL) {
INIT_LOGE("debug, cannot get filename\n");
INIT_LOGE("DoInsmod cannot get filename.\n");
free(line);
return;
}
fileName = p;
INIT_LOGE("debug, fileName is [%s]\n", fileName);
INIT_LOGI("DoInsmod fileName is [%s].\n", fileName);
if ((p = strtok_r(NULL, " ", &restPtr)) == NULL) {
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册