I have seen a couple of write-ups on putting in an off switch for the Raspberry Pi, but I think this is the first one where the author includes a script you can just copy in, instead of tweaking something on the system. Now if it included an install script too…
Love the cheapo switch build too.
http://www.instructables.com/id/Simple-Raspberry-Pi-Shutdown-Button/?ALLSTEPS