From: Ben Gras Date: Fri, 17 Mar 2006 19:14:26 +0000 (+0000) Subject: Tinyhalt can't call REBOOT as PM can't deal with that any more. X-Git-Tag: v3.1.2a~186 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/doc/syslog.3.html?a=commitdiff_plain;h=fb8c7e6fca9b273bf8e3eb66f6db581deac53547;p=minix.git Tinyhalt can't call REBOOT as PM can't deal with that any more. --- diff --git a/commands/reboot/tinyhalt.c b/commands/reboot/tinyhalt.c index 1a24b0d6d..b0f61e659 100755 --- a/commands/reboot/tinyhalt.c +++ b/commands/reboot/tinyhalt.c @@ -16,6 +16,7 @@ int main(int argc, char **argv) { int flag; char *prog; + char *reboot_code = "delay; boot"; /* Try to run the real McCoy. */ #if __minix_vmd @@ -28,7 +29,8 @@ int main(int argc, char **argv) sleep(2); /* Not too fast. */ - reboot(strcmp(prog, "reboot") == 0 ? RBT_REBOOT : RBT_HALT); + reboot(strcmp(prog, "reboot") == 0 ? RBT_MONITOR : RBT_HALT, + reboot_code, strlen(reboot_code)); write(2, "reboot call failed\n", 19); return 1;