RPi 2 shut-down script for GPIO switch

I’ve not found answers on the wiki, and am a bit rusty with Linux, so I’m not sure which of the various scripts I’ve found on the web will work with this version of Debian. I’m also not sure how to update my version. Update from SVN is not working “whet not able to resolve host address…