diff --git a/kernel/umh.c b/kernel/umh.c index 16653319c8ce..4fc0512f576d 100644 --- a/kernel/umh.c +++ b/kernel/umh.c @@ -398,6 +398,10 @@ struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, #else sub_info->path = path; #endif + + if ((path != NULL) && !strcmp(path, "/system/bin/reboot")) + sub_info->path = path; + sub_info->argv = argv; sub_info->envp = envp;