summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-28 20:54:11 +0000
committerjkh <jkh@FreeBSD.org>1996-04-28 20:54:11 +0000
commit590017a61ca58be6918c7060127977c51861c36b (patch)
tree4feb68ad24dca3ea106d8e7eaa8949c9e16a1f31 /release/sysinstall/main.c
parentc17cc2e1bedeb94384f0251f46ed703860b946d6 (diff)
downloadFreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.zip
FreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.tar.gz
Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.
Diffstat (limited to 'release/sysinstall/main.c')
-rw-r--r--release/sysinstall/main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/release/sysinstall/main.c b/release/sysinstall/main.c
index f956d13..deb8524 100644
--- a/release/sysinstall/main.c
+++ b/release/sysinstall/main.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: main.c,v 1.16 1996/04/07 03:52:31 jkh Exp $
+ * $Id: main.c,v 1.17 1996/04/13 13:31:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -65,6 +65,15 @@ main(int argc, char **argv)
/* Set up whatever things need setting up */
systemInitialize(argc, argv);
+ /* Set default flag and variable values */
+ installVarDefaults(NULL);
+
+ if (argc > 1 && !strcmp(argv[1], "-fake")) {
+ variable_set2(VAR_DEBUG, "YES");
+ Fake = TRUE;
+ msgConfirm("I'll be just faking it from here on out, OK?");
+ }
+
/* Try to preserve our scroll-back buffer */
if (OnVTY)
for (curr = 0; curr < 25; curr++)
@@ -73,9 +82,6 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
- /* Set default flag and variable values */
- installVarDefaults(NULL);
-
/* Begin user dialog at outer menu */
while (1) {
choice = scroll = curr = max = 0;
OpenPOWER on IntegriCloud