]> Zhao Yanbai Git Server - minix.git/commitdiff
More setup checks
authorBen Gras <ben@minix3.org>
Tue, 13 Sep 2005 13:45:22 +0000 (13:45 +0000)
committerBen Gras <ben@minix3.org>
Tue, 13 Sep 2005 13:45:22 +0000 (13:45 +0000)
commands/scripts/setup.sh

index 43593ad3479165e8114c97254a7169a62c0d15a5..c62349da68372556ac4b48000b2beb6f358cf9f6 100755 (executable)
@@ -437,7 +437,8 @@ echo " --- Step 6: Select the size of /home ----------------------------------"
        homemb="$homesize MB"
        homesize="`expr $homesize '*' 1024 '*' 2`"
 else
-       homesize="`devsize /dev/$home` / 2 / 1024"
+       homepart="`devsize /dev/$home`"
+       homesize="`expr $homepart / 2 / 1024`"
        if [ "$homesize" -gt "$maxhome" ]
        then
                echo "Sorry, but your /home is too big ($homesize MB) to leave enough"