diff options
author | Rick Balocca <rbalocca@vyatta.com> | 2008-09-22 10:27:19 -0700 |
---|---|---|
committer | Rick Balocca <rbalocca@vyatta.com> | 2008-09-22 10:27:19 -0700 |
commit | 3e1bdbdad99e5c019b4797bb906e89858e504b95 (patch) | |
tree | 947e5d526c574368979dc9188560dc354e18e13c /scripts/install-system | |
parent | 90b81cf158a7ca263bf43d1bfc2fc971fcea2290 (diff) | |
download | vyatta-cfg-quagga-3e1bdbdad99e5c019b4797bb906e89858e504b95.tar.gz vyatta-cfg-quagga-3e1bdbdad99e5c019b4797bb906e89858e504b95.zip |
Fix for bug http://bugzilla.vyatta.com/show_bug.cgi?id=3694
Diffstat (limited to 'scripts/install-system')
-rw-r--r--[-rwxr-xr-x] | scripts/install-system | 14 |
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) |