10 lines
334 B
Bash
Executable file
10 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
|
|
}
|