提交 97cfeb16 编写于 作者: L lidanyang

fix execreboot failed to reboot

Signed-off-by: Nlidanyang <lidanyang12@huawei.com>
上级 f072744b
...@@ -24,7 +24,7 @@ void ExecReboot(const char *value) ...@@ -24,7 +24,7 @@ void ExecReboot(const char *value)
INIT_LOGI("ExecReboot %s", value); INIT_LOGI("ExecReboot %s", value);
#ifndef STARTUP_INIT_TEST #ifndef STARTUP_INIT_TEST
// install module // install module
InitModuleMgrInstall("rebootmodule"); ModuleMgrScan("init/reboot");
if (strstr(value, "reboot") != NULL) { if (strstr(value, "reboot") != NULL) {
PluginExecCmdByName("reboot", value); PluginExecCmdByName("reboot", value);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册