I take no credit for this
All credits go to ra3al afaik.
I tried this on modpunk's cm9 alpha1 ans cm7
both works like a charm
I have put this all in one zip.
please read the readme file and i am not responsible for any damage to your phone.