summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRick Balocca <rbalocca@vyatta.com>2008-09-22 10:27:19 -0700
committerRick Balocca <rbalocca@vyatta.com>2008-09-22 10:27:19 -0700
commit3e1bdbdad99e5c019b4797bb906e89858e504b95 (patch)
tree947e5d526c574368979dc9188560dc354e18e13c /scripts
parent90b81cf158a7ca263bf43d1bfc2fc971fcea2290 (diff)
downloadvyatta-cfg-system-3e1bdbdad99e5c019b4797bb906e89858e504b95.tar.gz
vyatta-cfg-system-3e1bdbdad99e5c019b4797bb906e89858e504b95.zip
Fix for bug http://bugzilla.vyatta.com/show_bug.cgi?id=3694
Diffstat (limited to 'scripts')
-rw-r--r--[-rwxr-xr-x]scripts/install-system14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 77384d56..7229cfda 100755..100644
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -417,12 +417,16 @@ select_drive () {
display="$display $drive\t$size"MB"\n"
done
- # Display the drives and ask the user which one to install to
- echo -e "$display"
- echo
- echo -n "$1 [$INSTALL_DRIVE]:"
+ while true
+ do
+ # Display the drives and ask the user which one to install to
+ echo -e "$display"
+ echo
+ echo -n "$1 [$INSTALL_DRIVE]:"
+ response=$(get_response "$INSTALL_DRIVE" "$drives") && break
+ done
+ INSTALL_DRIVE="$response"
- INSTALL_DRIVE=$(get_response "$INSTALL_DRIVE" "$drives")
echo
# Assume no dma if the disk is smaller than 10G (such as a CF drive)