Sync for Westhill build.

This commit is contained in:
jkh 1995-10-20 14:26:15 +00:00
parent 024ff958be
commit a767dace87
8 changed files with 33 additions and 21 deletions

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id$
* $Id: doc.c,v 1.1 1995/10/20 07:03:40 jkh Exp $
*
* Jordan Hubbard
*
@ -28,7 +28,7 @@ docBrowser(char *junk)
char *browser = variable_get(BROWSER_PACKAGE);
/* Make sure we were started at a reasonable time */
if (!variable_get(SYSTEM_INSTALLED)) {
if (!strcmp(variable_get(SYSTEM_STATE), "init")) {
msgConfirm("Sorry, it's not possible to invoke the browser until the system\n"
"is installed completely enough to support a copy of %s.", browser);
return RET_FAIL;

View File

@ -27,4 +27,12 @@ would have been able to destroy it yourself). It is simply impossible
to guarantee that this procedure's crude form of upgrade automation
will work in all cases and if you do this upgrade without proper
BACKUPS for any important data then you really must like living life
close to the edge, that's all I can say!
close to the edge, that's all we can say!
NOTE to 2.0 users: We're sorry, but the "slice" changes that were
added in FreeBSD 2.0.5 made automated upgrades pretty difficult due to
the fact that a complete reinstall is pretty much called for. Things
may still *work* after a 2.1 upgrade, but you will also no doubt
receive many warnings at boot time about non-aligned slices and such;
we really do recommend a fresh installation for 2.0 systems! (But
back up your user data first :-).

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: installFinal.c,v 1.1 1995/10/19 16:15:39 jkh Exp $
* $Id: installFinal.c,v 1.2 1995/10/20 07:02:38 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard & Coranth Gryphon. All rights reserved.
@ -85,7 +85,7 @@ static DMenu MenuSamba = {
/* Do any final optional hackery */
int
installFinal(void)
installFinal(char *unused)
{
int i, tval;
char tbuf[256];

View File

@ -209,7 +209,7 @@ installUpgrade(char *str)
return RET_FAIL;
/* Note that we're now upgrading */
variable_set2(SYSTEM_INSTALLED, "upgrade");
variable_set2(SYSTEM_STATE, "upgrade");
msgConfirm("OK. First, we're going to go to the disk label editor. In this editor\n"
"you will be expected to *Mount* any partitions you're interested in\n"
@ -256,9 +256,8 @@ installUpgrade(char *str)
if (saved_etc) {
msgNotify("Preserving /etc directory..");
/* cp returns a bogus status, so we can't check the status meaningfully. Bleah. */
(void)vsystem("cp -pr /etc/* %s", saved_etc)) {
(void)vsystem("cp -pr /etc/* %s", saved_etc);
}
if (file_readable("/kernel")) {
msgNotify("Moving old kernel to /kernel.205");
if (system("chflags noschg /mnt/kernel && mv /mnt/kernel /mnt/kernel.205"))
@ -284,7 +283,7 @@ installUpgrade(char *str)
"/dev entries and such that a 2.1 system expects to see. I'll also perform a\n"
"few \"fixup\" operations to repair the effects of splatting a bin distribution\n"
"on top of an existing system..");
if (installFixup() == RET_FAIL)
if (installFixup("upgrade") == RET_FAIL)
msgConfirm("Hmmmmm. The fixups don't seem to have been very happy.\n"
"You may wish to examine the system a little more closely when\n"
"it comes time to merge your /etc customizations back.");
@ -293,7 +292,7 @@ installUpgrade(char *str)
if (extractingBin)
configSysconfig();
if (installFinal() == RET_FAIL)
if (installFinal("upgrade") == RET_FAIL)
msgConfirm("Some of the final configuration stuff evidently failed, but\n"
"the first stage of the upgrade should otherwise be considered\n"
"a success!\n\n"

View File

@ -52,7 +52,7 @@ ftpFlagCheck(Option opt)
optionUnset(OPT_FTP_RESELECT);
else if ((int)opt.aux == OPT_FTP_RESELECT && optionIsSet(OPT_FTP_ABORT))
optionUnset(OPT_FTP_ABORT);
return NULL;
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
}
static char *
@ -179,7 +179,10 @@ value_of(Option opt)
return ival;
case OPT_IS_FLAG:
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
if (opt.check)
return opt.check(opt);
else
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
case OPT_IS_FUNC:
case OPT_IS_VAR:

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id$
* $Id: doc.c,v 1.1 1995/10/20 07:03:40 jkh Exp $
*
* Jordan Hubbard
*
@ -28,7 +28,7 @@ docBrowser(char *junk)
char *browser = variable_get(BROWSER_PACKAGE);
/* Make sure we were started at a reasonable time */
if (!variable_get(SYSTEM_INSTALLED)) {
if (!strcmp(variable_get(SYSTEM_STATE), "init")) {
msgConfirm("Sorry, it's not possible to invoke the browser until the system\n"
"is installed completely enough to support a copy of %s.", browser);
return RET_FAIL;

View File

@ -209,7 +209,7 @@ installUpgrade(char *str)
return RET_FAIL;
/* Note that we're now upgrading */
variable_set2(SYSTEM_INSTALLED, "upgrade");
variable_set2(SYSTEM_STATE, "upgrade");
msgConfirm("OK. First, we're going to go to the disk label editor. In this editor\n"
"you will be expected to *Mount* any partitions you're interested in\n"
@ -256,9 +256,8 @@ installUpgrade(char *str)
if (saved_etc) {
msgNotify("Preserving /etc directory..");
/* cp returns a bogus status, so we can't check the status meaningfully. Bleah. */
(void)vsystem("cp -pr /etc/* %s", saved_etc)) {
(void)vsystem("cp -pr /etc/* %s", saved_etc);
}
if (file_readable("/kernel")) {
msgNotify("Moving old kernel to /kernel.205");
if (system("chflags noschg /mnt/kernel && mv /mnt/kernel /mnt/kernel.205"))
@ -284,7 +283,7 @@ installUpgrade(char *str)
"/dev entries and such that a 2.1 system expects to see. I'll also perform a\n"
"few \"fixup\" operations to repair the effects of splatting a bin distribution\n"
"on top of an existing system..");
if (installFixup() == RET_FAIL)
if (installFixup("upgrade") == RET_FAIL)
msgConfirm("Hmmmmm. The fixups don't seem to have been very happy.\n"
"You may wish to examine the system a little more closely when\n"
"it comes time to merge your /etc customizations back.");
@ -293,7 +292,7 @@ installUpgrade(char *str)
if (extractingBin)
configSysconfig();
if (installFinal() == RET_FAIL)
if (installFinal("upgrade") == RET_FAIL)
msgConfirm("Some of the final configuration stuff evidently failed, but\n"
"the first stage of the upgrade should otherwise be considered\n"
"a success!\n\n"

View File

@ -52,7 +52,7 @@ ftpFlagCheck(Option opt)
optionUnset(OPT_FTP_RESELECT);
else if ((int)opt.aux == OPT_FTP_RESELECT && optionIsSet(OPT_FTP_ABORT))
optionUnset(OPT_FTP_ABORT);
return NULL;
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
}
static char *
@ -179,7 +179,10 @@ value_of(Option opt)
return ival;
case OPT_IS_FLAG:
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
if (opt.check)
return opt.check(opt);
else
return (*(int *)opt.data) & (int)opt.aux ? "ON" : "OFF";
case OPT_IS_FUNC:
case OPT_IS_VAR: