diff options
Diffstat (limited to 'sys/arch/alpha/stand/boot')
-rw-r--r-- | sys/arch/alpha/stand/boot/boot.c | 22 | ||||
-rw-r--r-- | sys/arch/alpha/stand/boot/newvers.sh | 6 |
2 files changed, 7 insertions, 21 deletions
diff --git a/sys/arch/alpha/stand/boot/boot.c b/sys/arch/alpha/stand/boot/boot.c index c9633fc6ea1..dc9b3c82e88 100644 --- a/sys/arch/alpha/stand/boot/boot.c +++ b/sys/arch/alpha/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.15 2003/06/02 23:27:43 millert Exp $ */ +/* $OpenBSD: boot.c,v 1.16 2004/07/05 19:59:20 deraadt Exp $ */ /* $NetBSD: boot.c,v 1.10 1997/01/18 01:58:33 cgd Exp $ */ /* @@ -54,7 +54,7 @@ int loadfile(char *, u_int64_t *); char boot_file[128]; char boot_flags[128]; -extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[]; +extern char bootprog_name[], bootprog_rev[]; struct bootinfo_v1 bootinfo_v1; @@ -64,14 +64,6 @@ extern vaddr_t ssym, esym; int debug; -char *kernelnames[] = { - "bsd", - "bsd.bak", - "bsd.old", - "obsd", - NULL -}; - int main() { @@ -83,14 +75,11 @@ main() init_prom_calls(); /* print a banner */ - printf("%s, Revision %s (%s, %s)\n", bootprog_name, bootprog_rev, - bootprog_maker, bootprog_date); + printf("%s %s\n", bootprog_name, bootprog_rev); /* switch to OSF pal code. */ OSFpal(); - printf("\n"); - prom_getenv(PROM_E_BOOTED_FILE, boot_file, sizeof(boot_file)); prom_getenv(PROM_E_BOOTED_OSFLAGS, boot_flags, sizeof(boot_flags)); @@ -100,11 +89,8 @@ main() if (boot_file[0] != '\0') win = (loadfile(name = boot_file, &entry) == 0); else - for (namep = kernelnames, win = 0; *namep != NULL && !win; - namep++) - win = (loadfile(name = *namep, &entry) == 0); + win = (loadfile(name = "bsd", &entry) == 0); - printf("\n"); if (!win) goto fail; diff --git a/sys/arch/alpha/stand/boot/newvers.sh b/sys/arch/alpha/stand/boot/newvers.sh index 52d98972d37..012d3cf713f 100644 --- a/sys/arch/alpha/stand/boot/newvers.sh +++ b/sys/arch/alpha/stand/boot/newvers.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: newvers.sh,v 1.7 2003/06/02 23:27:44 millert Exp $ +# $OpenBSD: newvers.sh,v 1.8 2004/07/05 19:59:20 deraadt Exp $ # $NetBSD: newvers.sh,v 1.3 1996/06/14 20:03:04 cgd Exp $ # # Copyright (c) 1984, 1986, 1990, 1993 @@ -37,5 +37,5 @@ r=`awk ' { print $3 ; exit } ' < $1` echo "char bootprog_name[] = \"OpenBSD/Alpha Secondary Boot\";" > vers.c echo "char bootprog_rev[] = \"${r}\";" >> vers.c -echo "char bootprog_date[] = \"${t}\";" >> vers.c -echo "char bootprog_maker[] = \"${u}@${h}\";" >> vers.c +#echo "char bootprog_date[] = \"${t}\";" >> vers.c +#echo "char bootprog_maker[] = \"${u}@${h}\";" >> vers.c |