summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/dist.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-05-05 05:16:03 +0000
committerpst <pst@FreeBSD.org>1997-05-05 05:16:03 +0000
commit0d0068a444d2cef8e147134ecff104fafe7cb850 (patch)
treeb4f84cc1fa31ebf53519640b97bd9ce6530924f3 /release/sysinstall/dist.c
parent16cf7a49785ae5422a15ddd2e1bde74a1c660e53 (diff)
downloadFreeBSD-src-0d0068a444d2cef8e147134ecff104fafe7cb850.zip
FreeBSD-src-0d0068a444d2cef8e147134ecff104fafe7cb850.tar.gz
Add in some more config file support -- add variables to shut up
sysinstall about the dangerously dedicated message, and other variables to allow pre-configuring the distribution sets. Still todo: add a variable to define an initial set of packages that should be loaded. Reviewed by: jkh
Diffstat (limited to 'release/sysinstall/dist.c')
-rw-r--r--release/sysinstall/dist.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c
index 4cafbbc..09f5a29 100644
--- a/release/sysinstall/dist.c
+++ b/release/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: dist.c,v 1.105 1997/04/02 12:07:27 jkh Exp $
+ * $Id: dist.c,v 1.106 1997/04/20 16:46:28 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -202,6 +202,36 @@ distReset(dialogMenuItem *self)
}
int
+distConfig(dialogMenuItem *self)
+{
+ char *cp;
+
+ distReset(NULL);
+
+ if ((cp = variable_get(VAR_DIST_MAIN)) != NULL)
+ Dists = atoi(cp);
+
+ if ((cp = variable_get(VAR_DIST_DES)) != NULL)
+ DESDists = atoi(cp);
+
+ if ((cp = variable_get(VAR_DIST_SRC)) != NULL)
+ SrcDists = atoi(cp);
+
+#ifndef USE_XIG_ENFIRONMENT
+ if ((cp = variable_get(VAR_DIST_X11)) != NULL)
+ XF86Dists = atoi(cp);
+
+ if ((cp = variable_get(VAR_DIST_XSERVER)) != NULL)
+ XF86ServerDists = atoi(cp);
+
+ if ((cp = variable_get(VAR_DIST_XFONTS)) != NULL)
+ XF86FontDists = atoi(cp);
+#endif
+
+ return DITEM_SUCCESS | DITEM_REDRAW;
+}
+
+int
distSetDeveloper(dialogMenuItem *self)
{
distReset(NULL);
OpenPOWER on IntegriCloud