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/sparc Cleanup to work on sparc again



details:   https://anonhg.NetBSD.org/src/rev/709b648185fe
branches:  trunk
changeset: 472260:709b648185fe
user:      abs <abs%NetBSD.org@localhost>
date:      Mon Apr 26 05:04:50 1999 +0000

description:
Cleanup to work on sparc again

diffstat:

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

diffs (39 lines):

diff -r 905e798cd580 -r 709b648185fe distrib/utils/sysinst/arch/sparc/md.c
--- a/distrib/utils/sysinst/arch/sparc/md.c     Mon Apr 26 04:46:46 1999 +0000
+++ b/distrib/utils/sysinst/arch/sparc/md.c     Mon Apr 26 05:04:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.11 1999/04/11 22:40:28 bouyer Exp $   */
+/*     $NetBSD: md.c,v 1.12 1999/04/26 05:04:50 abs Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -113,7 +113,7 @@
 int
 md_pre_disklabel()
 {
-       return 1;
+       return 0;
 }
 
 /*
@@ -133,15 +133,13 @@
  *
  * On the sparc, we use this opportunity to install the boot blocks.
  */
-void
+int
 md_post_newfs()
 {
-
-       printf(msg_string(MSG_dobootblks), diskdev);
-       if (run_prog(0, 1, NULL, "/sbin/disklabel -W %s", diskdev) != 0)
-               return 0;
-       run_prog(0, 1, NULL, "/usr/mdec/binstall ffs /mnt") ;
-       return 0;
+       /* boot blocks ... */
+       msg_display(MSG_dobootblks, diskdev);
+       return (run_prog(0, 1, NULL, "/sbin/disklabel -W %s", diskdev) ||
+               run_prog(0, 1, NULL, "/usr/mdec/binstall ffs /mnt"));
 }
 
 /*



Home | Main Index | Thread Index | Old Index