]> Zhao Yanbai Git Server - minix.git/commitdiff
Tinyhalt can't call REBOOT as PM can't deal with that any more.
authorBen Gras <ben@minix3.org>
Fri, 17 Mar 2006 19:14:26 +0000 (19:14 +0000)
committerBen Gras <ben@minix3.org>
Fri, 17 Mar 2006 19:14:26 +0000 (19:14 +0000)
commands/reboot/tinyhalt.c

index 1a24b0d6d6247fd552d52ec417d1d7887dd4cead..b0f61e65918f52b39d0c251d57a6d441d208258f 100755 (executable)
@@ -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;