Add dmamode.
[jmk] --rw-rw-r-- M 107020 glenda sys 2448 Nov 19 21:10 sys/lib/dist/pc/sub/termrc
/n/sourcesdump/2005/1119/plan9/sys/lib/dist/pc/sub/termrc:59,64 -
/n/sourcesdump/2005/1120/plan9/sys/lib/dist/pc/sub/termrc:59,77
echo add 127.0.0.1 255.255.255.0
} >/net/ipifc/clone
+ if(~ $#dmamode 0)
+ dmamode=ask
+ if(~ $dmamode ask){
+ echo -n 'use DMA for ide drives[yes]: '
+ dmamode=`{read}
+ if(~ $#dmamode 0)
+ dmamode=yes
+ }
+ if(~ $dmamode yes)
+ for(i in /dev/sd*/ctl)
+ if(test -f $i)
+ {echo dma on; echo rwm on} >$i
+
if(~ $installmode ask){
echo -n 'install mode is (text, graphics)[graphics]: '
installmode=`{read}
|