summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-new
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install/install-image-new')
-rwxr-xr-xscripts/install/install-image-new6
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