vmware 453 B

12345678910111213141516171819202122
  1. #!/bin/rc
  2. if(aux/isvmware -s){
  3. if(test -f '#P/pge'){
  4. echo -n on >'#P/pge' # default, but set anyway.
  5. echo -n off >'#P/i8253timerset'
  6. }
  7. if(test -f /dev/archctl){
  8. echo pge on >/dev/archctl
  9. echo coherence nop >/dev/archctl
  10. echo i8253set off >/dev/archctl
  11. }
  12. for(i in '#S'/sd??)
  13. if(test -f $i/ctl)
  14. echo dma on >$i/ctl
  15. aux/vmwarefs
  16. if(! test -f /dev/snarf)
  17. aux/stub /dev/snarf
  18. bind /mnt/vmware/snarf /dev/snarf
  19. aux/vmmousepoll &
  20. }