profile 870 B

123456789101112131415161718192021222324252627282930313233
  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. fn cd { builtin cd $* && awd } # for acme
  8. switch($service){
  9. case terminal
  10. plumber
  11. echo -n accelerated > '#m/mousectl'
  12. echo -n 'res 3' > '#m/mousectl'
  13. prompt=('term% ' ' ')
  14. fn term%{ $* }
  15. exec rio -i riostart
  16. case cpu
  17. if (test -e /mnt/term/mnt/wsys) { # rio already running
  18. bind -a /mnt/term/mnt/wsys /dev
  19. if(test -w /dev/label)
  20. echo -n $sysname > /dev/label
  21. }
  22. bind /mnt/term/dev/cons /dev/cons
  23. bind /mnt/term/dev/consctl /dev/consctl
  24. bind -a /mnt/term/dev /dev
  25. prompt=('cpu% ' ' ')
  26. fn cpu%{ $* }
  27. if (! test -e /mnt/term/mnt/wsys) { # cpu call from drawterm
  28. font=/lib/font/bit/pelm/latin1.8.font
  29. exec rio
  30. }
  31. case con
  32. prompt=('cpu% ' ' ')
  33. }