Changed logic checking for valid device.
This commit is contained in:
parent
d75a1c3f38
commit
1bf8a2e8bf
1 changed files with 6 additions and 1 deletions
|
@ -276,6 +276,11 @@ Please finish the name of the primary partition you have created:
|
||||||
echo "selection to install MINIX."
|
echo "selection to install MINIX."
|
||||||
echo ""
|
echo ""
|
||||||
confirmation=""
|
confirmation=""
|
||||||
|
|
||||||
|
if [ ! -b "/dev/$primary" ]
|
||||||
|
then echo "/dev/$primary is not a block device."
|
||||||
|
fi
|
||||||
|
|
||||||
while [ -z "$confirmation" -o "$confirmation" != yes -a "$confirmation" != no ]
|
while [ -z "$confirmation" -o "$confirmation" != yes -a "$confirmation" != no ]
|
||||||
do
|
do
|
||||||
echo -n "Are you sure you want to continue? Please enter 'yes' or 'no': "
|
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
|
fi
|
||||||
|
|
||||||
if [ ! -b "/dev/$primary" ]
|
if [ ! -b "/dev/$primary" ]
|
||||||
then echo "/dev/$primary is not a block device."
|
then echo Doing step 4 again.
|
||||||
step4=""
|
step4=""
|
||||||
else
|
else
|
||||||
devsize="`devsize /dev/$primary`"
|
devsize="`devsize /dev/$primary`"
|
||||||
|
|
Loading…
Reference in a new issue