dmaon 255 B

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