how about
        
        #!/bin/rc
        # turn dma on with abandon

        # only sdata drives do this dma thing.
        # only tweek drives on this system (hence #S).
        d=`{awk '$2 == "ata" {print $1}'<'#S/sdctl'}

        for(i in '#S'/^$d^*/ctl)
                awk '$6 > 0 && $8 == 0 {print "echo dma on > " 
ENVIRON["i"]}'<$i |
                sed 's/#/''#''/g' |
                rc

- erik

Reply via email to