summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-04 19:48:19 +0000
committerjkh <jkh@FreeBSD.org>1995-05-04 19:48:19 +0000
commit1c3e871d62424f6b9dc0b6ac3b71d0bc9214fd36 (patch)
treef1ca440208c6915223a9c5cef917d2269e64f2ea /usr.sbin/sysinstall/main.c
parent35947edfc266ae5dc9fbe3da9c1339ed7e64dbc5 (diff)
downloadFreeBSD-src-1c3e871d62424f6b9dc0b6ac3b71d0bc9214fd36.zip
FreeBSD-src-1c3e871d62424f6b9dc0b6ac3b71d0bc9214fd36.tar.gz
This will now write MBR entries - should be enough for testing.
Diffstat (limited to 'usr.sbin/sysinstall/main.c')
-rw-r--r--usr.sbin/sysinstall/main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c
index a1b1303..7a89927 100644
--- a/usr.sbin/sysinstall/main.c
+++ b/usr.sbin/sysinstall/main.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: main.c,v 1.1.1.1 1995/04/27 12:50:34 jkh Exp $
+ * $Id: main.c,v 1.2 1995/05/04 03:51:17 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -43,6 +43,8 @@
#include "sysinstall.h"
+extern DMenu MenuInitial;
+
int
main(int argc, char **argv)
{
@@ -59,9 +61,12 @@ main(int argc, char **argv)
systemWelcome();
/* Begin user dialog at outer menu */
- choice = scroll = curr = max = 0;
- dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max);
-
+ while (1) {
+ choice = scroll = curr = max = 0;
+ dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max);
+ if (getpid() != 1 || !msgYesNo("Are you sure you wish to exit? System will reboot."))
+ break;
+ }
/* Say goodnight, Gracie */
systemShutdown();
OpenPOWER on IntegriCloud