diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-05-12 18:55:41 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-05-12 18:55:41 -0500 |
commit | 514125a2246ee477809a325a7661be08a15c8482 (patch) | |
tree | 304dace26fd27f14cc8f25347b2cab2cf95fdd8e /scripts/install/install-functions | |
parent | 81731da16519e452ab2d4eb913ee01e5468a1905 (diff) | |
parent | 0a59c2f58a44f1caf4304429ace5d2d76d8867b8 (diff) | |
download | vyatta-cfg-system-514125a2246ee477809a325a7661be08a15c8482.tar.gz vyatta-cfg-system-514125a2246ee477809a325a7661be08a15c8482.zip |
Merge branch 'napa' of git.vyatta.com:/git/vyatta-cfg-system into napa
Diffstat (limited to 'scripts/install/install-functions')
-rwxr-xr-x | scripts/install/install-functions | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions index ffaea22d..5670f82a 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -96,9 +96,14 @@ get_response () { local ldefault=$(tolower "$1") local loptions=$(tolower "$2") - # get the response from the user - read myresponse - myresponse=$(tolower "$myresponse") + + if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ]; then + myresponse=$ldefault + else + # get the response from the user + read myresponse + myresponse=$(tolower "$myresponse") + fi # Check to see if the user accepts the default if [ -z "$myresponse" ]; then |