Something like this http://www.allaboutcircuits.com/projects/build-a-raspberry-pi-pushbutton-switch/
just modify RPi.GPIO to bpi library and modify print fonction to shutdown and make script run on startup on background its all
↧
On/Off Additional Switch for turn on / shutdown bananaNAS
↧