未验证 提交 18a3a2fe 编写于 作者: O openharmony_ci 提交者: Gitee

!613 load autorun modules

Merge pull request !613 from handy/0516
......@@ -64,8 +64,16 @@ static int moduleMgrCommandsInit(int stage, int prio, void *cookie)
return 0;
}
static int loadAutorunModules(int stage, int prio, void *cookie)
{
MODULE_MGR *autorun = ModuleMgrScan("init/autorun");
INIT_LOGI("Load autorun modules return %p", autorun);
return 0;
}
MODULE_CONSTRUCTOR(void)
{
// Depends on parameter service
InitAddGlobalInitHook(0, loadAutorunModules);
InitAddPreCfgLoadHook(0, moduleMgrCommandsInit);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册