plan9fox/sys/lib/dist.old/pc/sub/vmware
cinap_lenrek 45bab89362 livecd
2011-04-11 19:47:05 +00:00

11 lines
334 B
Bash
Executable file

#!/bin/rc
# vmware - if we're running in a vmware virtual machine, tweak set up
if(aux/isvmware -s){
echo hwaccel off >'#v/vgactl'
echo -n off >'#P/i8253timerset'
for (ctl in '#S'/sd[C-H]?/ctl)
if (test -e $ctl && grep -s '^config .* dma ' $ctl &&
! grep -s '^config (848A|.* dma 00000000 )' $ctl)
echo 'dma on' >$ctl
}