]> Zhao Yanbai Git Server - minix.git/commitdiff
Reverse trailer/delay order (delay first)
authorBen Gras <ben@minix3.org>
Tue, 31 May 2005 11:11:47 +0000 (11:11 +0000)
committerBen Gras <ben@minix3.org>
Tue, 31 May 2005 11:11:47 +0000 (11:11 +0000)
boot/bootimage.c

index 5498f6a10c5a17000c9b50c4a7fa24af57c7f07f..78db1843ad10386e5350b28b20e8140a4645aa4e 100755 (executable)
@@ -568,14 +568,14 @@ void exec_image(char *image)
        }
 #endif
 
-       /* Run the trailer function just before starting Minix. */
-       if (!run_trailer()) { errno= 0; return; }
-
        /* Do delay if wanted. */
        if((delayvalue = b_value("bootdelay")) != nil > 0) {
                delay(delayvalue);
        }
 
+       /* Run the trailer function just before starting Minix. */
+       if (!run_trailer()) { errno= 0; return; }
+
        /* Translate the boot parameters to what Minix likes best. */
        if (!params2params(params, sizeof(params))) { errno= 0; return; }