summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-05-05 21:54:23 +0000
committerjkh <jkh@FreeBSD.org>1996-05-05 21:54:23 +0000
commit8d1089fb9317c3fa275c4470e8a92463cc828758 (patch)
treec2ab52ffaacd17c635dbebeebfcf18c6b0b564b5
parentf53c8a2ec7b10da3bb55681c44d9e187774e535a (diff)
downloadFreeBSD-src-8d1089fb9317c3fa275c4470e8a92463cc828758.zip
FreeBSD-src-8d1089fb9317c3fa275c4470e8a92463cc828758.tar.gz
Bring in some changes to make the FTP installation warn you if it can't
find the requested release on a given site.
-rw-r--r--release/sysinstall/ftp_strat.c11
-rw-r--r--release/sysinstall/menus.c17
-rw-r--r--usr.sbin/sade/menus.c17
-rw-r--r--usr.sbin/sysinstall/menus.c17
4 files changed, 30 insertions, 32 deletions
diff --git a/release/sysinstall/ftp_strat.c b/release/sysinstall/ftp_strat.c
index 01ba03a..ca87a3c 100644
--- a/release/sysinstall/ftp_strat.c
+++ b/release/sysinstall/ftp_strat.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: ftp_strat.c,v 1.13 1996/04/23 01:29:21 jkh Exp $
+ * $Id: ftp_strat.c,v 1.14 1996/04/28 03:26:57 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -203,8 +203,15 @@ retry:
}
/* Give it a shot - can't hurt to try and zoom in if we can, unless we get a hard error back that is! */
- if (FtpChdir(ftp, getenv(VAR_RELNAME)) == -2)
+ i = FtpChdir(ftp, getenv(VAR_RELNAME));
+ if (i == -2)
goto punt;
+ else if (i == -1)
+ msgConfirm("Warning: Can't CD to `%s' distribution on this\n"
+ "FTP server. You may need to visit the Options menu\n"
+ "to set the release name explicitly if this FTP server\n"
+ "isn't exporting a CD (or some other custom release) at\n"
+ "the top level as a release tree.");
if (isDebug())
msgDebug("mediaInitFTP was successful (logged in and chdir'd)\n");
diff --git a/release/sysinstall/menus.c b/release/sysinstall/menus.c
index 408dde2..4237041 100644
--- a/release/sysinstall/menus.c
+++ b/release/sysinstall/menus.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: menus.c,v 1.57 1996/04/28 22:54:21 jkh Exp $
+ * $Id: menus.c,v 1.58 1996/04/29 18:06:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -131,8 +131,7 @@ checkDistDeveloper(dialogMenuItem *self)
static int
checkDistXDeveloper(dialogMenuItem *self)
{
- return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL &&
- (XF86Dists & _DIST_XDEV) == _DIST_XDEV && XF86ServerDists && XF86FontDists);
+ return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL);
}
static int
@@ -150,9 +149,7 @@ checkDistUser(dialogMenuItem *self)
static int
checkDistXUser(dialogMenuItem *self)
{
- return (Dists == _DIST_USER &&
- XF86Dists == DIST_XF86_BIN | DIST_XF86_LIB | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS &&
- (XF86ServerDists & DIST_XF86_SERVER_SVGA) && (XF86FontDists & DIST_XF86_FONTS_MISC));
+ return (Dists == (_DIST_USER | DIST_XF86));
}
static int
@@ -211,13 +208,13 @@ option by pressing [ENTER].", /* prompt */
"usage", /* help file */
{ { "1 Usage", "Quick start - How to use this menu system", NULL, dmenuDisplayFile, NULL, "usage" },
{ "2 Doc", "More detailed documentation on FreeBSD", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
- { "3 Options","Go to options editor", NULL, optionsEditor },
+ { "3 Options", "Go to the options editor", NULL, optionsEditor },
{ "4 Novice", "Begin a novice installation (for beginners)", NULL, installNovice },
- { "5 Express","Begin a quick installation (for the impatient)", NULL, installExpress },
+ { "5 Express", "Begin a quick installation (for the impatient)", NULL, installExpress },
{ "6 Custom", "Begin a custom installation (for experts)", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
{ "7 Fixit", "Go into repair mode with CDROM or floppy", NULL, dmenuSubmenu, NULL, &MenuFixit },
- { "8 Upgrade","Upgrade an existing 2.0.5 system", NULL, installUpgrade },
- { "9 Configure","Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
+ { "8 Upgrade", "Upgrade an existing 2.0.5 system", NULL, installUpgrade },
+ { "9 Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
{ "0 Exit", "Exit this menu (and the installation)", NULL, dmenuExit },
{ NULL } },
};
diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c
index 408dde2..4237041 100644
--- a/usr.sbin/sade/menus.c
+++ b/usr.sbin/sade/menus.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: menus.c,v 1.57 1996/04/28 22:54:21 jkh Exp $
+ * $Id: menus.c,v 1.58 1996/04/29 18:06:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -131,8 +131,7 @@ checkDistDeveloper(dialogMenuItem *self)
static int
checkDistXDeveloper(dialogMenuItem *self)
{
- return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL &&
- (XF86Dists & _DIST_XDEV) == _DIST_XDEV && XF86ServerDists && XF86FontDists);
+ return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL);
}
static int
@@ -150,9 +149,7 @@ checkDistUser(dialogMenuItem *self)
static int
checkDistXUser(dialogMenuItem *self)
{
- return (Dists == _DIST_USER &&
- XF86Dists == DIST_XF86_BIN | DIST_XF86_LIB | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS &&
- (XF86ServerDists & DIST_XF86_SERVER_SVGA) && (XF86FontDists & DIST_XF86_FONTS_MISC));
+ return (Dists == (_DIST_USER | DIST_XF86));
}
static int
@@ -211,13 +208,13 @@ option by pressing [ENTER].", /* prompt */
"usage", /* help file */
{ { "1 Usage", "Quick start - How to use this menu system", NULL, dmenuDisplayFile, NULL, "usage" },
{ "2 Doc", "More detailed documentation on FreeBSD", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
- { "3 Options","Go to options editor", NULL, optionsEditor },
+ { "3 Options", "Go to the options editor", NULL, optionsEditor },
{ "4 Novice", "Begin a novice installation (for beginners)", NULL, installNovice },
- { "5 Express","Begin a quick installation (for the impatient)", NULL, installExpress },
+ { "5 Express", "Begin a quick installation (for the impatient)", NULL, installExpress },
{ "6 Custom", "Begin a custom installation (for experts)", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
{ "7 Fixit", "Go into repair mode with CDROM or floppy", NULL, dmenuSubmenu, NULL, &MenuFixit },
- { "8 Upgrade","Upgrade an existing 2.0.5 system", NULL, installUpgrade },
- { "9 Configure","Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
+ { "8 Upgrade", "Upgrade an existing 2.0.5 system", NULL, installUpgrade },
+ { "9 Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
{ "0 Exit", "Exit this menu (and the installation)", NULL, dmenuExit },
{ NULL } },
};
diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c
index 408dde2..4237041 100644
--- a/usr.sbin/sysinstall/menus.c
+++ b/usr.sbin/sysinstall/menus.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: menus.c,v 1.57 1996/04/28 22:54:21 jkh Exp $
+ * $Id: menus.c,v 1.58 1996/04/29 18:06:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -131,8 +131,7 @@ checkDistDeveloper(dialogMenuItem *self)
static int
checkDistXDeveloper(dialogMenuItem *self)
{
- return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL &&
- (XF86Dists & _DIST_XDEV) == _DIST_XDEV && XF86ServerDists && XF86FontDists);
+ return (Dists == (_DIST_DEVELOPER | DIST_XF86) && SrcDists == DIST_SRC_ALL);
}
static int
@@ -150,9 +149,7 @@ checkDistUser(dialogMenuItem *self)
static int
checkDistXUser(dialogMenuItem *self)
{
- return (Dists == _DIST_USER &&
- XF86Dists == DIST_XF86_BIN | DIST_XF86_LIB | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS &&
- (XF86ServerDists & DIST_XF86_SERVER_SVGA) && (XF86FontDists & DIST_XF86_FONTS_MISC));
+ return (Dists == (_DIST_USER | DIST_XF86));
}
static int
@@ -211,13 +208,13 @@ option by pressing [ENTER].", /* prompt */
"usage", /* help file */
{ { "1 Usage", "Quick start - How to use this menu system", NULL, dmenuDisplayFile, NULL, "usage" },
{ "2 Doc", "More detailed documentation on FreeBSD", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
- { "3 Options","Go to options editor", NULL, optionsEditor },
+ { "3 Options", "Go to the options editor", NULL, optionsEditor },
{ "4 Novice", "Begin a novice installation (for beginners)", NULL, installNovice },
- { "5 Express","Begin a quick installation (for the impatient)", NULL, installExpress },
+ { "5 Express", "Begin a quick installation (for the impatient)", NULL, installExpress },
{ "6 Custom", "Begin a custom installation (for experts)", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
{ "7 Fixit", "Go into repair mode with CDROM or floppy", NULL, dmenuSubmenu, NULL, &MenuFixit },
- { "8 Upgrade","Upgrade an existing 2.0.5 system", NULL, installUpgrade },
- { "9 Configure","Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
+ { "8 Upgrade", "Upgrade an existing 2.0.5 system", NULL, installUpgrade },
+ { "9 Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
{ "0 Exit", "Exit this menu (and the installation)", NULL, dmenuExit },
{ NULL } },
};
OpenPOWER on IntegriCloud