From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <10b109140711260918w793c5935p4be53bd856f078d7@mail.gmail.com> Date: Mon, 26 Nov 2007 18:18:04 +0100 From: "Antonin Vecera" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Tip of the day... In-Reply-To: <584d4c782bb352ee1d75be20ea93fbf6@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <584d4c782bb352ee1d75be20ea93fbf6@quanstro.net> Topicbox-Message-UUID: 0c17e0a2-ead3-11e9-9d60-3106f5b1d025 On Nov 26, 2007 1:48 PM, erik quanstrom wrote: > 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 > /bin/dmaon Antonin