1bind -a $home/bin/rc /bin 2bind -a $home/bin/$cputype /bin 3bind -c tmp /tmp 4if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null) 5 ramfs # in case we're running off a cd 6font = /lib/font/bit/pelm/euro.9.font 7upas/fs 8fn cd { builtin cd $* && awd } # for acme 9switch($service){ 10case terminal 11 plumber 12 echo -n accelerated > '#m/mousectl' 13 echo -n 'res 3' > '#m/mousectl' 14 prompt=('term% ' ' ') 15 fn term%{ $* } 16 exec rio -i riostart 17case cpu 18 if (test -e /mnt/term/mnt/wsys) { # rio already running 19 bind -a /mnt/term/mnt/wsys /dev 20 if(test -w /dev/label) 21 echo -n $sysname > /dev/label 22 } 23 bind /mnt/term/dev/cons /dev/cons 24 bind /mnt/term/dev/consctl /dev/consctl 25 bind -a /mnt/term/dev /dev 26 prompt=('cpu% ' ' ') 27 fn cpu%{ $* } 28 news 29 if (! test -e /mnt/term/mnt/wsys) { # cpu call from drawterm 30 font=/lib/font/bit/pelm/latin1.8.font 31 exec rio 32 } 33case con 34 prompt=('cpu% ' ' ') 35 news 36} 37