From 12daa03d595b05ad279374bf328d1c3240c1154b Mon Sep 17 00:00:00 2001 From: dcs Date: Fri, 15 Sep 2000 07:54:10 +0000 Subject: Start countdown only _after_ the kernel was loaded. Not very fair otherwise. --- sys/boot/common/boot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/boot') diff --git a/sys/boot/common/boot.c b/sys/boot/common/boot.c index 70b1fb1..1c65279 100644 --- a/sys/boot/common/boot.c +++ b/sys/boot/common/boot.c @@ -175,10 +175,6 @@ autoboot(int timeout, char *prompt) if (timeout == -1) /* all else fails */ timeout = 10; - otime = time(NULL); - when = otime + timeout; /* when to boot */ - yes = 0; - kernelname = getenv("kernelname"); if (kernelname == NULL) { argv[0] = NULL; @@ -190,6 +186,10 @@ autoboot(int timeout, char *prompt) } } + otime = time(NULL); + when = otime + timeout; /* when to boot */ + yes = 0; + printf("%s\n", (prompt == NULL) ? "Hit [Enter] to boot immediately, or any other key for command prompt." : prompt); for (;;) { -- cgit v1.1