moved a few things around. This script is working but not fully fetured with tempreture monitering. Note not all cpu mining software is compatible with ARM or 32bit CPU's and if you consistantly get errors on the "make"  commands this is likely the cause.
due to the recent news of Ghash or cex.io gaining a +51% of hashing power more than once and for a sustained period I've started a new script for quickly setting up p2pool mining nodes for as many coins as I can find. Sugestions on scripting up the security side of things for a public node are most welcome.