Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fdisk Make sure the boot selector actually gets updated...
details: https://anonhg.NetBSD.org/src/rev/d1d72718422a
branches: trunk
changeset: 473450:d1d72718422a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jun 04 18:59:15 1999 +0000
description:
Make sure the boot selector actually gets updated if you only change
the timeout and/or the default menu choice.
diffstat:
sbin/fdisk/fdisk.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r b487047a9e90 -r d1d72718422a sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c Fri Jun 04 18:47:33 1999 +0000
+++ b/sbin/fdisk/fdisk.c Fri Jun 04 18:59:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdisk.c,v 1.36 1999/05/02 12:17:48 fvdl Exp $ */
+/* $NetBSD: fdisk.c,v 1.37 1999/06/04 18:59:15 thorpej Exp $ */
/*
* Mach Operating System
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.36 1999/05/02 12:17:48 fvdl Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.37 1999/06/04 18:59:15 thorpej 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