]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/lib/newuser
devproc: fix mistake
[plan9front.git] / sys / lib / newuser
index 1fd4183e01ec7db19836ac8ff364de554ff5c00f..6cbe0dcfc30a27c98d80901c06dc5bdb268ef1c8 100755 (executable)
@@ -8,7 +8,7 @@ if(test -f $home/lib/profile){
 }
 cd $home
 x='$'
-mkdir bin bin/rc bin/mips bin/386 bin/power bin/arm
+mkdir bin bin/rc bin/mips bin/386 bin/amd64 bin/power bin/arm
 mkdir lib tmp
 chmod +t tmp
 bind -qc /n/other/usr/$user/tmp $home/tmp
@@ -17,9 +17,9 @@ mail -c
 auth/cron -c
 
 cat > lib/profile <<!
-bind -a $x^home/bin/rc /bin
-bind -a $x^home/bin/$x^cputype /bin
-mount -qC /srv/cwfs /n/other other
+bind -qa $x^home/bin/rc /bin
+bind -qa $x^home/bin/$x^cputype /bin
+mount -qC /srv/boot /n/other other
 bind -qc /n/other/usr/$x^user/tmp $x^home/tmp
 bind -c $x^home/tmp /tmp
 font=/lib/font/bit/vga/unicode.font
@@ -46,7 +46,13 @@ case cpu
        fn cpu%{ $x^* }
        if(! test -e /mnt/term/dev/wsys){
                # call from drawterm
-               auth/factotum
+               if(test -e /mnt/term/dev/secstore){
+                       auth/factotum -n
+                       read -m /mnt/term/dev/secstore >/mnt/factotum/ctl
+                       echo >/mnt/term/dev/secstore
+               }
+               if not
+                       auth/factotum
                webcookies
                webfs
                plumber