Browse Source

Plan 9 from Bell Labs 2014-03-20

David du Colombier 10 years ago
parent
commit
f29c1b5abf
1 changed files with 4 additions and 2 deletions
  1. 4 2
      rc/bin/dmaon

+ 4 - 2
rc/bin/dmaon

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