plan9fox/rc/bin/dmaon
2011-03-30 18:29:07 +00:00

7 lines
220 B
Bash
Executable file

#!/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