diff options
-rw-r--r-- | release/sysinstall/disks.c | 21 | ||||
-rw-r--r-- | usr.sbin/sade/disks.c | 21 | ||||
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 21 |
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; |