Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst/arch/sandpoint Automatically adjust th...



details:   https://anonhg.NetBSD.org/src/rev/e85cb5c2607f
branches:  trunk
changeset: 755643:e85cb5c2607f
user:      phx <phx%NetBSD.org@localhost>
date:      Sun Jun 13 15:32:00 2010 +0000

description:
Automatically adjust the console speed to 57600 in /etc/ttys for KUROBOX
kernel.

diffstat:

 distrib/utils/sysinst/arch/sandpoint/md.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 9d8f75948a48 -r e85cb5c2607f distrib/utils/sysinst/arch/sandpoint/md.c
--- a/distrib/utils/sysinst/arch/sandpoint/md.c Sun Jun 13 15:30:37 2010 +0000
+++ b/distrib/utils/sysinst/arch/sandpoint/md.c Sun Jun 13 15:32:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.31 2010/06/09 17:37:24 phx Exp $ */
+/*     $NetBSD: md.c,v 1.32 2010/06/13 15:32:00 phx Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -160,6 +160,14 @@
 {
 #ifndef DEBUG
        enable_rc_conf();
+
+       /*
+        * For KUROBOX set the console speed to 57600 in /etc/ttys.
+        */
+       if (get_kernel_set() == SET_KERNEL_2)
+               run_program(RUN_CHROOT,
+                   "sed -an -e 's/115200/57600/;H;$!d;g;w /etc/ttys'"
+                   " /etc/ttys");
 #endif
 }
 



Home | Main Index | Thread Index | Old Index