diff options
author | jkh <jkh@FreeBSD.org> | 1997-06-05 09:48:03 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-06-05 09:48:03 +0000 |
commit | 9160ca00b5da185787c84ae5e1b1d848847dd262 (patch) | |
tree | 3707fb988b7a0ae5cc4e493af9c486da9892a1dd /release/sysinstall/variable.c | |
parent | 4caf82f971a9e9d7368fa7667e4e43f98857e620 (diff) | |
download | FreeBSD-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 'release/sysinstall/variable.c')
-rw-r--r-- | release/sysinstall/variable.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/sysinstall/variable.c b/release/sysinstall/variable.c index 7a3e80a..4bd2e78 100644 --- a/release/sysinstall/variable.c +++ b/release/sysinstall/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; |