I don't know if I understand you correctly, but you shouldn't exactly use the code from that link. You should adapt your own code (setup-shutdown.sh) with the information (code) from that topic. The Mausberry circuit where that link is based on will most likely work differently than your circuit. If you don't know how, than you might ask there if someone will help you.