summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-08 00:56:28 +0000
committerjkh <jkh@FreeBSD.org>1995-05-08 00:56:28 +0000
commitbe72875c5f0b709e23a63a45346e11e16b2eed7f (patch)
tree40acf5a99a85bbc29e331bd2b8d004b00e6585b0
parent7633746449bc56aa87613f2394c760cda88f01ba (diff)
downloadFreeBSD-src-be72875c5f0b709e23a63a45346e11e16b2eed7f.zip
FreeBSD-src-be72875c5f0b709e23a63a45346e11e16b2eed7f.tar.gz
Add a wizard button for Poul.
-rw-r--r--release/sysinstall/disks.c21
-rw-r--r--usr.sbin/sade/disks.c21
-rw-r--r--usr.sbin/sysinstall/disks.c21
3 files changed, 60 insertions, 3 deletions
diff --git a/release/sysinstall/disks.c b/release/sysinstall/disks.c
index 23648fb..749e6c5 100644
--- a/release/sysinstall/disks.c
+++ b/release/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.7 1995/05/07 22:07:51 jkh Exp $
+ * $Id: disks.c,v 1.9 1995/05/08 00:38:02 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -550,6 +550,25 @@ partition_disks(struct disk **disks)
msg = MSG_NOT_APPLICABLE;
break;
+ case 'W':
+ if (!msgYesNo("Are you sure you want to go into Wizard mode?\nThis is an entirely documented feature which you are not\nexpected to understand!")) {
+ int i;
+
+ clear();
+ dialog_clear();
+ end_dialog();
+ DialogActive = FALSE;
+ for (i = 0; disks[i]; i++)
+ slice_wizard(disks[i]);
+ clear();
+ dialog_clear();
+ DialogActive = TRUE;
+ record_fbsd_chunks(disks);
+ }
+ else
+ msg = "A most prudent choice!";
+ break;
+
case 27: /* ESC */
partitioning = FALSE;
break;
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index 23648fb..749e6c5 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.7 1995/05/07 22:07:51 jkh Exp $
+ * $Id: disks.c,v 1.9 1995/05/08 00:38:02 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -550,6 +550,25 @@ partition_disks(struct disk **disks)
msg = MSG_NOT_APPLICABLE;
break;
+ case 'W':
+ if (!msgYesNo("Are you sure you want to go into Wizard mode?\nThis is an entirely documented feature which you are not\nexpected to understand!")) {
+ int i;
+
+ clear();
+ dialog_clear();
+ end_dialog();
+ DialogActive = FALSE;
+ for (i = 0; disks[i]; i++)
+ slice_wizard(disks[i]);
+ clear();
+ dialog_clear();
+ DialogActive = TRUE;
+ record_fbsd_chunks(disks);
+ }
+ else
+ msg = "A most prudent choice!";
+ break;
+
case 27: /* ESC */
partitioning = FALSE;
break;
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 23648fb..749e6c5 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.7 1995/05/07 22:07:51 jkh Exp $
+ * $Id: disks.c,v 1.9 1995/05/08 00:38:02 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -550,6 +550,25 @@ partition_disks(struct disk **disks)
msg = MSG_NOT_APPLICABLE;
break;
+ case 'W':
+ if (!msgYesNo("Are you sure you want to go into Wizard mode?\nThis is an entirely documented feature which you are not\nexpected to understand!")) {
+ int i;
+
+ clear();
+ dialog_clear();
+ end_dialog();
+ DialogActive = FALSE;
+ for (i = 0; disks[i]; i++)
+ slice_wizard(disks[i]);
+ clear();
+ dialog_clear();
+ DialogActive = TRUE;
+ record_fbsd_chunks(disks);
+ }
+ else
+ msg = "A most prudent choice!";
+ break;
+
case 27: /* ESC */
partitioning = FALSE;
break;
OpenPOWER on IntegriCloud