profile 890 B

123456789101112131415161718192021222324252627282930313233343536
  1. bind -a $home/bin/rc /bin
  2. bind -a $home/bin/$cputype /bin
  3. bind -c tmp /tmp
  4. if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
  5. ramfs # in case we're running off a cd
  6. font = /lib/font/bit/pelm/euro.9.font
  7. upas/fs
  8. fn cd { builtin cd $* && awd } # for acme
  9. switch($service){
  10. case 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
  17. case 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. }
  33. case con
  34. prompt=('cpu% ' ' ')
  35. news
  36. }