vmware 498 B

1234567891011121314151617181920212223
  1. #!/bin/rc
  2. # vmware - if we're running in a vmware virtual machine, tweak set up
  3. if(aux/isvmware -s){
  4. echo hwaccel off >'#v/vgactl'
  5. if(test -f '#P/pge'){
  6. echo -n on >'#P/pge' # default, but set anyway.
  7. echo -n off >'#P/i8253timerset'
  8. }
  9. if(test -f '#P/archctl'){
  10. echo pge on >'#P/archctl'
  11. echo coherence nop >'#P/archctl'
  12. echo i8253set off >'#P/archctl'
  13. }
  14. dmaon
  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. }