From fb8c7e6fca9b273bf8e3eb66f6db581deac53547 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 17 Mar 2006 19:14:26 +0000 Subject: [PATCH] Tinyhalt can't call REBOOT as PM can't deal with that any more. --- commands/reboot/tinyhalt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.44.0