1#!/bin/rc 2# dmaon [/dev/sd??/ctl ...] - turn on ide dma, if possible 3rfork e 4if (~ $#* 0) 5 * = /dev/sd[C-H]?/ctl 6for (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