aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-03-08 12:58:29 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-03-08 12:58:29 +0000
commitc29c9ac4183813385caa1bb5bddf514353887b8a (patch)
tree518d16b142a2100d1e706b3591b5155b577075bf /usr.sbin/sysinstall/dist.c
parent0b6828d14d52f21d6b6549f143da70321467dcda (diff)
downloadsrc-c29c9ac4183813385caa1bb5bddf514353887b8a.tar.gz
src-c29c9ac4183813385caa1bb5bddf514353887b8a.zip
YAMF22
Notes
Notes: svn path=/head/; revision=23516
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index 339652e2e961..f05b3f7dbd02 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id$
+ * $Id: dist.c,v 1.99 1997/02/22 14:11:31 peter Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -75,6 +75,7 @@ static Distribution DistTable[] = {
{ "compat1x", "/", &Dists, DIST_COMPAT1X, NULL },
{ "compat20", "/", &Dists, DIST_COMPAT20, NULL },
{ "compat21", "/", &Dists, DIST_COMPAT21, NULL },
+{ "ports", "/usr", &Dists, DIST_PORTS, NULL },
{ "XF8632", "/usr", &Dists, DIST_XF86, XF86DistTable },
{ NULL },
};
@@ -645,7 +646,12 @@ distExtractAll(dialogMenuItem *self)
char buf[512];
/* paranoia */
- if (!Dists || !mediaVerify() || !mediaDevice->init(mediaDevice))
+ if (!Dists) {
+ if (!dmenuOpenSimple(&MenuDistributions, FALSE) && !Dists)
+ return DITEM_FAILURE | DITEM_RESTORE;
+ }
+
+ if (!mediaVerify() || !mediaDevice->init(mediaDevice))
return DITEM_FAILURE;
dialog_clear_norefresh();
@@ -667,3 +673,5 @@ distExtractAll(dialogMenuItem *self)
}
return DITEM_SUCCESS;
}
+
+