11-23-2020, 03:17 AM
Well, I don't have one, and don't know anything about it but I think you answered your own question. You'll need to pick a GPIO pin that's capable of being an input, and isn't already being used. Preferably one that can generate an interrupt. Then you need to write some software, probably as little as a script, to issue "sudo shutdown now" or whatever is appropriate for your operating system whenever that input changes state.