From 77ff4a2a75cafe00ba7e847a60f11bfd0438d1a3 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 13 Sep 2005 13:45:22 +0000 Subject: [PATCH] More setup checks --- commands/scripts/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.44.0