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 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} 11