Shell script for Raspberry Pi to monitor a power-off button (connected between ground and gpio pin 2) and safely shut down the system if the button is pushed
The file "shutdown-monitor.sh" should be stored in folder "/home/pi". The file "shutdown-monitor.conf" should be stored among the upstart scripts in folder "/etc/init".