Below is the directions to install the shutdown/startup board. The problem is that the board turns off the Pi but doesn't run shutdown. Please look at the instructions and see if anything looks wrong with code. I was looking at the chmod +x, could the permissions be wrong so the script isn't run? I don't know where to go from here.
How to set it up
1. Remove your TF card and connect it to your PC or laptop with TF card adapter.
2. Modify /boot/config.txt file as following:
3. Download shell script:
apt-get install -y wiringPi
git clone https://github.com/yoyojacky/powerbutton.git
sudo mv ~/powerbutton/gpioshutdown /etc/init.d/
sudo chmod +x /etc/init.d/gpioshutdown
sudo vim.tiny /etc/rc.local
Add those three lines before exit 0
gpio mode 25 out
gpio write 25 1