vmware 532 B

123456789101112131415161718192021222324
  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. echo -n hwaccel off >/dev/vgactl
  16. aux/vmwarefs
  17. if(! test -f /dev/snarf)
  18. aux/stub /dev/snarf
  19. bind /mnt/vmware/snarf /dev/snarf
  20. aux/vmmousepoll &
  21. }