Power & Source of Big Ideas

I am to stupid to do it like i want, with python that i see for other pi's. But, shell scripts work everywhere an i understand it in most cases. So, here is an solution for my Problem. I use PIN 18, which Linux GPIO is 201. I pot a pullup resistor (10kOhm) to PIN 17 - 3,3V. After this, i configure t...
I want to use a shutdown button to make a secure shutdown with the nanopi neo air. But i am completly lost how it works. I don't find out, which GPIO's i can use for a script.  And if i need a puuldown or not.
Can somebody help me?