diff options
author | jkh <jkh@FreeBSD.org> | 1995-10-22 17:39:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-10-22 17:39:29 +0000 |
commit | adc8dfe93367460423845eaff2b09ee3a28c76fd (patch) | |
tree | d96db45c0fe5170da5b30b9a49df12828ca8c923 /usr.sbin/sysinstall/installUpgrade.c | |
parent | 212c8f1ba7c62342e90ba294aac4b2e0e1faed00 (diff) | |
download | FreeBSD-src-adc8dfe93367460423845eaff2b09ee3a28c76fd.zip FreeBSD-src-adc8dfe93367460423845eaff2b09ee3a28c76fd.tar.gz |
Second round of screen update changes. Now handle the yes/no dialogs
as well as the confirmation dialogs.
Diffstat (limited to 'usr.sbin/sysinstall/installUpgrade.c')
-rw-r--r-- | usr.sbin/sysinstall/installUpgrade.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/installUpgrade.c b/usr.sbin/sysinstall/installUpgrade.c index 9cc020a..0c563ce 100644 --- a/usr.sbin/sysinstall/installUpgrade.c +++ b/usr.sbin/sysinstall/installUpgrade.c @@ -197,6 +197,7 @@ installUpgrade(char *str) /* No bin selected? Not much of an upgrade.. */ if (!(Dists & DIST_BIN)) { + dialog_clear(); if (msgYesNo("You didn't select the bin distribution as one of the distributons to load.\n" "This one is pretty vital to a successful 2.1 upgrade. Are you SURE you don't\n" "want to select the bin distribution? Chose _No_ to bring up the Distributions\n" @@ -257,6 +258,7 @@ installUpgrade(char *str) while (!saved_etc) { saved_etc = msgGetInput("/usr/tmp/etc", "Under which directory do you wish to save your current /etc?"); if (!saved_etc || !*saved_etc || Mkdir(saved_etc, NULL)) { + dialog_clear(); if (msgYesNo("Directory was not specified, was invalid or user selected Cancel.\n\n" "Doing an upgrade without first backing up your /etc directory is a very\n" "bad idea! Do you want to go back and specify the save directory again?")) @@ -271,10 +273,12 @@ installUpgrade(char *str) } if (file_readable("/kernel")) { msgNotify("Moving old kernel to /kernel.205"); - if (system("chflags noschg /mnt/kernel && mv /mnt/kernel /mnt/kernel.205")) + if (system("chflags noschg /mnt/kernel && mv /mnt/kernel /mnt/kernel.205")) { + dialog_clear(); if (!msgYesNo("Hmmm! I couldn't move the old kernel over! Do you want to\n" "treat this as a big problem and abort the upgrade?")) return RET_FAIL; + } } } msgNotify("Beginning extraction of distributions.."); |