From 3e1bdbdad99e5c019b4797bb906e89858e504b95 Mon Sep 17 00:00:00 2001 From: Rick Balocca Date: Mon, 22 Sep 2008 10:27:19 -0700 Subject: Fix for bug http://bugzilla.vyatta.com/show_bug.cgi?id=3694 --- scripts/install-system | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) mode change 100755 => 100644 scripts/install-system (limited to 'scripts/install-system') diff --git a/scripts/install-system b/scripts/install-system old mode 100755 new mode 100644 index 77384d56..7229cfda --- 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) -- cgit v1.2.3