}
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
bind -c $home/tmp /tmp
-
mail -c
auth/cron -c
cat > lib/profile <<!
-bind -a $x^home/bin/rc /bin
-bind -a $x^home/bin/$x^cputype /bin
-bind -c $x^home/tmp /tmp
-font = /lib/font/bit/pelm/euro.9.font
+bind -qa $x^home/bin/rc /bin
+bind -qa $x^home/bin/$x^cputype /bin
+font=/lib/font/bit/vga/unicode.font
switch($x^service){
case terminal
+ webcookies
+ webfs
plumber
- startupasfs
echo -n accelerated > '#m/mousectl'
echo -n 'res 3' > '#m/mousectl'
prompt=('term% ' ' ')
fn term%{ $x^* }
- exec rio
+ rio
case cpu
- if (test -e /mnt/term/mnt/wsys) {
- # rio already running
- wsys = /mnt/term^`{cat /mnt/term/env/wsys}
- bind -a /mnt/term/mnt/wsys /dev
- echo -n $x^sysname > /dev/label
- }
bind /mnt/term/dev/cons /dev/cons
- bind /mnt/term/dev/consctl /dev/consctl
+ bind -q /mnt/term/dev/consctl /dev/consctl
+ >[2] /dev/null {
+ cp /dev/sysname /mnt/term/dev/label
+ if(wsys=`{cat /mnt/term/env/wsys})
+ wsys=/mnt/term^$x^wsys
+ }
bind -a /mnt/term/dev /dev
prompt=('cpu% ' ' ')
fn cpu%{ $x^* }
- startupasfs
- news
- if (! test -e /mnt/term/mnt/wsys) {
- # cpu call from drawterm
- font=/lib/font/bit/pelm/latin1.8.font
+ if(! test -e /mnt/term/dev/wsys){
+ # call from drawterm
+ 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
- auth/factotum
- exec rio
+ rio
}
case con
prompt=('cpu% ' ' ')
- startupasfs
- news
}
!
cat > lib/plumbing <<!
# to update: cp /usr/$user/lib/plumbing /mnt/plumb/rules
-editor = acme
+editor = sam
+browser = mothra
include basic