summaryrefslogtreecommitdiff
path: root/scripts/install/install-image
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-11-21 07:59:04 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-11-21 07:59:04 -0800
commit92f6f66814c0d9e9a82048ac99cf50d839678dc3 (patch)
tree95fe67ca2720be15cb163df2c2d92992a844b4a9 /scripts/install/install-image
parentf3503c4909b9ca8d383e49259b762824cda3fd41 (diff)
downloadvyatta-cfg-system-92f6f66814c0d9e9a82048ac99cf50d839678dc3.tar.gz
vyatta-cfg-system-92f6f66814c0d9e9a82048ac99cf50d839678dc3.zip
Bugfix 6457: Don't ask the question if you're not going to like the answer.
Diffstat (limited to 'scripts/install/install-image')
-rwxr-xr-xscripts/install/install-image22
1 files changed, 12 insertions, 10 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index cd486404..c201be3c 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -208,21 +208,23 @@ fi
trap sig_handler INT KILL
trap exit_handler EXIT
-cat <<EOF
+if is_live_cd_boot; then
+ cat <<EOF
Welcome to the Vyatta install program. This script
will walk you through the process of installing the
Vyatta image to a local hard drive.
EOF
-response=''
-while [ -z "$response" ]
-do
- echo -n "Would you like to continue? (Yes/No) [Yes]: "
- response=$(get_response "Yes" "Yes No Y N")
- if [ "$response" == "no" ] || [ "$response" == "n" ]; then
- fail_exit 'Ok then.'
- fi
-done
+ response=''
+ while [ -z "$response" ]
+ do
+ echo -n "Would you like to continue? (Yes/No) [Yes]: "
+ response=$(get_response "Yes" "Yes No Y N")
+ if [ "$response" == "no" ] || [ "$response" == "n" ]; then
+ fail_exit 'Ok then.'
+ fi
+ done
+fi
if is_live_cd_boot; then
if [ -n "$NEW_ISO" ]; then