Thanks for posting this. I've used your hookscript and seems a simple solution to mirroring traffic with traditional bridges. One typo, I think, in sub RemoveMirror promiscuous mode should be turned off:
system("ip", "link", "set", "$target", "promisc", "off");