Module Name: src
Committed By: nisimura
Date: Sat May 12 08:31:53 UTC 2012
Modified Files:
src/distrib/utils/sysinst/arch/sandpoint: md.c
Log Message:
Add KURO-BOX/T4 support to sysinst. Tested good with the target
machine.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/distrib/utils/sysinst/arch/sandpoint/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/sysinst/arch/sandpoint/md.c
diff -u src/distrib/utils/sysinst/arch/sandpoint/md.c:1.39 src/distrib/utils/sysinst/arch/sandpoint/md.c:1.40
--- src/distrib/utils/sysinst/arch/sandpoint/md.c:1.39 Wed Jan 25 19:03:35 2012
+++ src/distrib/utils/sysinst/arch/sandpoint/md.c Sat May 12 08:31:52 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.39 2012/01/25 19:03:35 phx Exp $ */
+/* $NetBSD: md.c,v 1.40 2012/05/12 08:31:52 nisimura Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -77,7 +77,7 @@ md_init_set_status(int flags)
prodname = malloc(len);
sysctlbyname(mib_name, prodname, &len, NULL, 0);
- if (strcmp(prodname, "kurobox") == 0)
+ if (strcmp(prodname, "kurobox")==0 || strcmp(prodname, "kurot4")==0)
/*
* Running on a KuroBox family product, so enable KUROBOX
*/
@@ -175,7 +175,7 @@ md_cleanup_install(void)
* Set the console speed in /etc/ttys depending on the board.
* The default speed is 115200, which is patched when needed.
*/
- if (strcmp(prodname, "kurobox") == 0)
+ if (strcmp(prodname, "kurobox")==0 || strcmp(prodname, "kurot4")==0)
new_speed = 57600; /* KuroBox */
else if (strcmp(prodname, "dlink") == 0 || /* D-Link DSM-G600 */