]> Zhao Yanbai Git Server - minix.git/commitdiff
Changed logic checking for valid device.
authorBen Gras <ben@minix3.org>
Fri, 23 Feb 2007 10:21:55 +0000 (10:21 +0000)
committerBen Gras <ben@minix3.org>
Fri, 23 Feb 2007 10:21:55 +0000 (10:21 +0000)
commands/scripts/setup.sh

index 91800c1a6b48afc48d09e2fa33e5d53eed0e4aba..0696ba9fe159bae24ff212d361a275461f790e71 100755 (executable)
@@ -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`"