mirror of
https://gitee.com/openharmony/startup_init
synced 2025-02-07 04:10:15 +00:00
update services/modules/reboot/reboot.c.
updater模式下需要清除misc,敲指令才能进入刷机模式 Signed-off-by: ldy <lidanyang12@huawei.com>
This commit is contained in:
parent
6353a72abc
commit
0361b34458
@ -176,6 +176,8 @@ PLUGIN_STATIC int DoRebootOther(int id, const char *name, int argc, const char *
|
||||
const char *cmd = strstr(argv[0], "reboot,");
|
||||
PLUGIN_CHECK(cmd != NULL, return -1, "Invalid parameter argc %s", argv[0]);
|
||||
PLUGIN_LOGI("DoRebootOther argv %s", argv[0]);
|
||||
// clear misc
|
||||
(void)UpdateMiscMessage(NULL, "reboot", NULL, NULL);
|
||||
DoJobNow("reboot");
|
||||
#ifndef STARTUP_INIT_TEST
|
||||
return syscall(__NR_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user