Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sbin/fdisk pullup 1.36->1.37 (thorpej): update boot sel...



details:   https://anonhg.NetBSD.org/src/rev/c298f020224a
branches:  netbsd-1-4
changeset: 468880:c298f020224a
user:      perry <perry%NetBSD.org@localhost>
date:      Tue Jun 22 14:26:32 1999 +0000

description:
pullup 1.36->1.37 (thorpej): update boot selector only if it needs updating

diffstat:

 sbin/fdisk/fdisk.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 01b50ecf08fe -r c298f020224a sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c        Tue Jun 22 14:24:04 1999 +0000
+++ b/sbin/fdisk/fdisk.c        Tue Jun 22 14:26:32 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdisk.c,v 1.33.2.2 1999/05/02 21:27:49 perry Exp $ */
+/*     $NetBSD: fdisk.c,v 1.33.2.3 1999/06/22 14:26:32 perry Exp $ */
 
 /*
  * Mach Operating System
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.33.2.2 1999/05/02 21:27:49 perry Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.33.2.3 1999/06/22 14:26:32 perry Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -831,6 +831,9 @@
                }
        }
 
+       /* bootsel is dirty from here on out. */
+       bootsel_modified = 1;
+
        /* The timeout value is in ticks, 18.2 Hz. Avoid using floats. */
        timo = ((1000 * mbs->timeo) / 18200);
        do {
@@ -875,7 +878,7 @@
                }
        }
 
-       if (!yesno("Update the bootselector?"))
+       if (bootsel_modified != 0 && !yesno("Update the bootselector?"))
                bootsel_modified = 0;
 }
 #endif



Home | Main Index | Thread Index | Old Index