summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/variable.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-06-05 09:48:03 +0000
committerjkh <jkh@FreeBSD.org>1997-06-05 09:48:03 +0000
commit9160ca00b5da185787c84ae5e1b1d848847dd262 (patch)
tree3707fb988b7a0ae5cc4e493af9c486da9892a1dd /usr.sbin/sade/variable.c
parent4caf82f971a9e9d7368fa7667e4e43f98857e620 (diff)
downloadFreeBSD-src-9160ca00b5da185787c84ae5e1b1d848847dd262.zip
FreeBSD-src-9160ca00b5da185787c84ae5e1b1d848847dd262.tar.gz
Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.
Diffstat (limited to 'usr.sbin/sade/variable.c')
-rw-r--r--usr.sbin/sade/variable.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c
index 7a3e80a..4bd2e78 100644
--- a/usr.sbin/sade/variable.c
+++ b/usr.sbin/sade/variable.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: variable.c,v 1.17 1997/02/22 14:12:38 peter Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -146,8 +146,11 @@ char *
variable_get_value(char *var, char *prompt)
{
char *cp;
-
- if ((cp = msgGetInput(variable_get(var), prompt)) != NULL)
+
+ cp = variable_get(var);
+ if (cp && variable_get(VAR_NONINTERACTIVE))
+ return cp;
+ else if ((cp = msgGetInput(cp, prompt)) != NULL)
variable_set2(var, cp);
else
cp = NULL;
OpenPOWER on IntegriCloud