From: Ben Gras Date: Fri, 23 Feb 2007 10:21:55 +0000 (+0000) Subject: Changed logic checking for valid device. X-Git-Tag: v3.1.3~62 X-Git-Url: http://zhaoyanbai.com/repos//%22https:/www.google.com/jsapi/%22?a=commitdiff_plain;h=1bf8a2e8bfc1e965bf75e8cb18bd0a75846ca78b;p=minix.git Changed logic checking for valid device. --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 91800c1a6..0696ba9fe 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -276,6 +276,11 @@ Please finish the name of the primary partition you have created: echo "selection to install MINIX." echo "" confirmation="" + + if [ ! -b "/dev/$primary" ] + then echo "/dev/$primary is not a block device." + fi + while [ -z "$confirmation" -o "$confirmation" != yes -a "$confirmation" != no ] do echo -n "Are you sure you want to continue? Please enter 'yes' or 'no': " @@ -314,7 +319,7 @@ Please finish the name of the primary partition you have created: fi if [ ! -b "/dev/$primary" ] - then echo "/dev/$primary is not a block device." + then echo Doing step 4 again. step4="" else devsize="`devsize /dev/$primary`"