From: David van Moolenbroek Date: Tue, 23 Jun 2009 13:40:32 +0000 (+0000) Subject: fix installation of home directories in setup.sh X-Git-Tag: v3.1.5~234 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=951581a29c416c024e9fe06c894d35a3382bdd38;p=minix.git fix installation of home directories in setup.sh --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index e8b7206a8..e0fb1ca93 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -572,11 +572,12 @@ bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`" if [ ! "$auto" = "r" ] then if mount /dev/$home /home 2>/dev/null then for u in bin ast - do if mkdir ~$u - then echo " * Creating home directory for $u in ~$u" - cpdir /usr/ast ~$u - chown -R $u:operator ~$u - else echo " * Couldn't create ~$u" + do h=`eval echo "~$u"` + if mkdir $h + then echo " * Creating home directory for $u in $h" + cpdir /usr/ast $h + chown -R $u:operator $h + else echo " * Couldn't create $h" fi done umount /dev/$home