aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/installUpgrade.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-12-15 18:14:37 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-12-15 18:14:37 +0000
commit50aaa93770316bb43fe3d6921096daec3aa60a9a (patch)
tree898099f7c20a1a20220c77aec909477c840c46bc /release/sysinstall/installUpgrade.c
parenta56eccf52bbce832df24e2519ab371801696b49e (diff)
downloadsrc-50aaa93770316bb43fe3d6921096daec3aa60a9a.tar.gz
src-50aaa93770316bb43fe3d6921096daec3aa60a9a.zip
make note of which /etc files need upgrading in installUpgrade rather
than asking the user to keep track of the list himself.
Notes
Notes: svn path=/head/; revision=20518
Diffstat (limited to 'release/sysinstall/installUpgrade.c')
-rw-r--r--release/sysinstall/installUpgrade.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/release/sysinstall/installUpgrade.c b/release/sysinstall/installUpgrade.c
index 5438e8e50534..d55213a9a65e 100644
--- a/release/sysinstall/installUpgrade.c
+++ b/release/sysinstall/installUpgrade.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: installUpgrade.c,v 1.33 1996/10/09 09:53:35 jkh Exp $
+ * $Id: installUpgrade.c,v 1.34 1996/12/08 12:27:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -56,23 +56,31 @@ typedef struct _hitList {
static void
doByHand(HitList *h)
{
+ FILE *fp;
+
+ fp = fopen("/etc/update-by-hand", "a");
msgConfirm("/etc/%s is one of those files that this upgrade procedure just isn't\n"
"smart enough to deal with right now. You'll need to merge the old and\n"
"new versions by hand when the option to do so manually is later\n"
- "presented (in the meantime, you might want to write the name of\n"
- "this file down! - the holographic shell on VTY4 is a good place for\n"
- "this).", h->name);
+ "presented. This has also been noted in the file /etc/update-by-hand.", h->name);
+ fprintf(fp, "/etc/%s\n", h->name);
+ fclose(fp);
}
static void
yellSysconfig(HitList *h)
{
+ FILE *fp;
+
+ fp = fopen("/etc/update-by-hand", "a");
+ fprintf(fp, "/etc/sysconfig\n");
msgConfirm("/etc/sysconfig is one of those files that this upgrade procedure just isn't\n"
"smart enough to deal with right now. Unfortunately, your system\n"
"will also come up with a very different \"personality\" than it had\n"
"before if you do not merge at LEAST the hostname and ifconfig lines\n"
"from the old one! This is very important, so please do this merge\n"
"even if you do no others before the system is allowed to reboot.");
+ fclose(fp);
}
/* These are the only meaningful files I know about */
@@ -200,7 +208,7 @@ installUpgrade(dialogMenuItem *self)
/* No bin selected? Not much of an upgrade.. */
if (!(Dists & DIST_BIN)) {
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"
+ "This one is pretty vital to a successful upgrade. Are you SURE you don't\n"
"want to select the bin distribution? Chose _No_ to bring up the Distributions\n"
"menu.") != 0) {
if (!dmenuOpenSimple(&MenuDistributions, FALSE))
@@ -249,7 +257,7 @@ installUpgrade(dialogMenuItem *self)
"step.");
if (DITEM_STATUS(diskLabelEditor(self)) == DITEM_FAILURE) {
- msgConfirm("The disk label editor failed to work properly! Upgrade operation\n"
+ msgConfirm("The disk label editor returned an error status. Upgrade operation\n"
"aborted.");
return DITEM_FAILURE | DITEM_RECREATE;
}