update services/modules/reboot/reboot.c.

updater模式下需要清除misc,敲指令才能进入刷机模式

Signed-off-by: ldy <lidanyang12@huawei.com>
This commit is contained in:
ldy 2024-09-05 06:33:39 +00:00 committed by Gitee
parent 6353a72abc
commit 0361b34458
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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,