From: Ben Gras Date: Tue, 13 Sep 2005 13:45:22 +0000 (+0000) Subject: More setup checks X-Git-Tag: v3.1.0~98 X-Git-Url: http://zhaoyanbai.com/repos/man.isc-hmac-fixup.html?a=commitdiff_plain;h=77ff4a2a75cafe00ba7e847a60f11bfd0438d1a3;p=minix.git More setup checks --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 43593ad34..c62349da6 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -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"