well for startes you can simply redirect the output from brctl into the script it's self, this is probably a more ideal solution then reading it from a file.
I also have no idea where it stores the data, but have a good look through /proc/ and also iptables, or chains depending on what you use. The data how ever is stored in what is called a Forwarding DataBase (fdb), try looking this up and see what you find.
|