1#!/bin/rc 2# vmware - if we're running in a vmware virtual machine, tweak set up 3if(aux/isvmware -s){ 4 echo hwaccel off >'#v/vgactl' 5 6 if(test -f '#P/pge'){ 7 echo -n on >'#P/pge' # default, but set anyway. 8 echo -n off >'#P/i8253timerset' 9 } 10 if(test -f '#P/archctl'){ 11 echo pge on >'#P/archctl' 12 echo coherence nop >'#P/archctl' 13 echo i8253set off >'#P/archctl' 14 } 15 16 dmaon 17 aux/vmwarefs 18 19 if(! test -f /dev/snarf) 20 aux/stub /dev/snarf 21 bind /mnt/vmware/snarf /dev/snarf 22 aux/vmmousepoll & 23} 24