Source-Changes-HG archive

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

[src/trunk]: src/distrib/sun3/common Use the first word of `sysctl -n hw.mode...



details:   https://anonhg.NetBSD.org/src/rev/741210bcfb65
branches:  trunk
changeset: 472129:741210bcfb65
user:      gwr <gwr%NetBSD.org@localhost>
date:      Thu Apr 22 04:29:49 1999 +0000

description:
Use the first word of `sysctl -n hw.model` to identify the kernel arch.
(to decide which kernel to install in the new root)

diffstat:

 distrib/sun3/common/install.md |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r ff19233501a0 -r 741210bcfb65 distrib/sun3/common/install.md
--- a/distrib/sun3/common/install.md    Thu Apr 22 04:24:52 1999 +0000
+++ b/distrib/sun3/common/install.md    Thu Apr 22 04:29:49 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: install.md,v 1.7 1999/03/30 06:17:55 gwr Exp $
+#      $NetBSD: install.md,v 1.8 1999/04/22 04:29:49 gwr Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -155,10 +155,9 @@
 }
 
 md_copy_kernel() {
-       local karch;
-       karch=`sysctl hw.machine`
-       echo -n "Copying kernel for $karch..."
-       cp -p /netbsd.$karch /mnt/netbsd
+       set -- `sysctl -n hw.model`
+       echo -n "Copying $1 kernel..."
+       cp -p /netbsd.$1 /mnt/netbsd
        echo "done."
 }
 



Home | Main Index | Thread Index | Old Index