diff options
author | Michael Larson <mike@vyatta.com> | 2011-05-10 14:21:27 -0700 |
---|---|---|
committer | Michael Larson <mike@vyatta.com> | 2011-05-10 14:21:27 -0700 |
commit | 55e7248013601a6120d343fc6a345f0e0ae98cfb (patch) | |
tree | fff4c8497fc815bae227c6151986de8192a49838 /scripts/install/install-image-new | |
parent | b80896ac4629da68853e51ee10c5146be4420b78 (diff) | |
download | vyatta-cfg-quagga-55e7248013601a6120d343fc6a345f0e0ae98cfb.tar.gz vyatta-cfg-quagga-55e7248013601a6120d343fc6a345f0e0ae98cfb.zip |
support interactive mode for rest api for install image op mode commands.
Diffstat (limited to 'scripts/install/install-image-new')
-rwxr-xr-x | scripts/install/install-image-new | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install/install-image-new b/scripts/install/install-image-new index c669da8e..3097392a 100755 --- a/scripts/install/install-image-new +++ b/scripts/install/install-image-new @@ -31,7 +31,11 @@ if [ -z "$image_name" ]; then fi echo -n "What would you like to name this image? [$image_name]: " -read response +if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ]; then + response=$NEWNAME +else + read response +fi if [ -n "$response" ]; then badchars=`echo $response | sed -e 's/[a-zA-Z0-9\.\_+-]//g'` if [ -n "$badchars" ]; then |