1
0

vmware 334 B

12345678910
  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. echo -n off >'#P/i8253timerset'
  6. for (ctl in '#S'/sd[C-H]?/ctl)
  7. if (test -e $ctl && grep -s '^config .* dma ' $ctl &&
  8. ! grep -s '^config (848A|.* dma 00000000 )' $ctl)
  9. echo 'dma on' >$ctl
  10. }