another option would be to take the pcitweak source code and create a port/package out of that. Saves the hassle of writing the program.
2009/7/30, Bryan Vyhmeister <open...@bsdjournal.net>: > On Jul 27, 2009, at 12:54 PM, Matthieu Herrb wrote: > >> You can also write a small C program to do that. > > I wish I had the knowledge to do this. I think this would be a > valuable addition to the OpenBSD base system. Thanks to both > suggestions. I just copied pcitweak from 4.3 with the libraries but I > would like a better solution. > > Bryan