git: 9front

ref: ab0d7832b5d4e955258fbcff64a6030ad43f7c54
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