plan9/rc/bin/dmaon

8 lines
220 B
Plaintext
Raw Permalink Normal View History

2014-02-08 11:19:48 +04:00
#!/bin/rc
# dmaon - turn on ide dma, if possible
rfork e
for (ctl in /dev/sd[C-H]?/ctl)
if (test -e $ctl && grep -s '^config .* dma ' $ctl &&
! grep -s '^config (848A|.* dma 00000000 )' $ctl)
echo 'dma on' >$ctl