git: 9front

ref: f1e5c17b3213af6ee546e79323ddfcf9c29e0131
dir: /rc/bin/dmaon/

View raw version
#!/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