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.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service