]> Zhao Yanbai Git Server - minix.git/commitdiff
Create home directories after setup
authorBen Gras <ben@minix3.org>
Mon, 5 Sep 2005 17:02:26 +0000 (17:02 +0000)
committerBen Gras <ben@minix3.org>
Mon, 5 Sep 2005 17:02:26 +0000 (17:02 +0000)
commands/scripts/setup.sh

index fe85ae8e273460365b0604025b5b9406186132bf..ecb468118b7a556e8ed4cd1a6d06f23907e79121 100755 (executable)
@@ -441,6 +441,20 @@ sync
 
 bios="`echo $primary | sed 's/d./dX/g'`"
 
+if [ ! "$auto" = "r" ]
+then   if mount /dev/$home /home
+       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"
+                       fi
+               done
+               umount /dev/$home
+       fi
+fi
+
 echo "
 Please type 'shutdown' to exit MINIX 3 and enter the boot monitor. At
 the boot monitor prompt, type 'boot $bios', where X is the bios drive