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/mac68k Automatically select the a...



details:   https://anonhg.NetBSD.org/src/rev/af68b23c8e2a
branches:  trunk
changeset: 534144:af68b23c8e2a
user:      scottr <scottr%NetBSD.org@localhost>
date:      Thu Jul 18 05:35:00 2002 +0000

description:
Automatically select the appropriate kernel set based on the
kernel used to do the installation.

diffstat:

 distrib/utils/sysinst/arch/mac68k/md.c |  51 ++++++++++++++-------------------
 1 files changed, 22 insertions(+), 29 deletions(-)

diffs (80 lines):

diff -r 0ac1eecfad4d -r af68b23c8e2a distrib/utils/sysinst/arch/mac68k/md.c
--- a/distrib/utils/sysinst/arch/mac68k/md.c    Thu Jul 18 03:23:01 2002 +0000
+++ b/distrib/utils/sysinst/arch/mac68k/md.c    Thu Jul 18 05:35:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.22 2002/06/29 17:00:18 scottr Exp $ */
+/*     $NetBSD: md.c,v 1.23 2002/07/18 05:35:00 scottr Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -927,7 +927,6 @@
 int
 md_post_newfs(void)
 {
-       md_select_kernel();
        return 0;
 }
 
@@ -1107,41 +1106,35 @@
        run_prog(0, NULL, "rm -f %s", target_expand("/.profile"));
 }
 
-void
-md_select_kernel()
-{
-       struct utsname instsys;
-
-        /*
-         * Get the name of the Install Kernel we are running under.
-        *
-        * Note:  In md.h the two kernels are disabled.  If they are
-        *        enabled there the logic here needs to be switched.
-         */
-        uname(&instsys);
-        if (strstr(instsys.version, "(INSTALLSBC)"))
-            /*
-             * Running the SBC Installation Kernel, so enable GENERICSBC
-             */
-            toggle_getit (1);
-        else
-            /*
-             * Running the GENERIC Installation Kernel, so enable GENERIC
-             */
-            toggle_getit (0);
-       return;
-}
-
 int
 md_pre_update()
 {
-       md_select_kernel();
-       return 1;
+       return 0;
 }
 
 void
 md_init()
 {
+       struct utsname instsys;
+
+       /*
+        * Get the name of the Install Kernel we are running under and
+        * enable the installation of the corresponding GENERIC kernel.
+        *
+        * Note:  In md.h the two kernels are disabled.  If they are
+        *        enabled there the logic here needs to be switched.
+        */
+        uname(&instsys);
+        if (strstr(instsys.version, "(INSTALLSBC)"))
+               /*
+                * Running the SBC Installation Kernel, so enable GENERICSBC
+                */
+               toggle_getit(1);
+        else
+               /*
+                * Running the GENERIC Installation Kernel, so enable GENERIC
+                */
+               toggle_getit(0);
 }
 
 void



Home | Main Index | Thread Index | Old Index