You *might* be able to base your script off rebel1699's SafeStrap script he posted for goldeneye and other roms here. If you feel you need to use his EXACT script, make sure to get his permission first so everyone is happy. Best of luck.
http://xdaforums.com/showthread.php?p=51067720
Sent from my SAMSUNG-SGH-I337 using Tapatalk
http://xdaforums.com/showthread.php?p=51067720
Sent from my SAMSUNG-SGH-I337 using Tapatalk