summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-existing
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-05-12 18:55:41 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-05-12 18:55:41 -0500
commit514125a2246ee477809a325a7661be08a15c8482 (patch)
tree304dace26fd27f14cc8f25347b2cab2cf95fdd8e /scripts/install/install-image-existing
parent81731da16519e452ab2d4eb913ee01e5468a1905 (diff)
parent0a59c2f58a44f1caf4304429ace5d2d76d8867b8 (diff)
downloadvyatta-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-image-existing')
-rwxr-xr-xscripts/install/install-image-existing6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing
index 491f6499..13af9bf8 100755
--- a/scripts/install/install-image-existing
+++ b/scripts/install/install-image-existing
@@ -57,7 +57,11 @@ NEWVER=`dpkg -l --root=${CD_SQUASH_ROOT} | grep "^.. vyatta-version " | awk '{p
NEWNAME=$NEWVER
echo -n "What would you like to name this image? [$NEWNAME]: "
-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