dmaon 220 B

1234567
  1. #!/bin/rc
  2. # dmaon - turn on ide dma, if possible
  3. rfork e
  4. for (ctl in /dev/sd[C-H]?/ctl)
  5. if (test -e $ctl && grep -s '^config .* dma ' $ctl &&
  6. ! grep -s '^config (848A|.* dma 00000000 )' $ctl)
  7. echo 'dma on' >$ctl